nsIPref is no longer passed around through inits on webshell, content viewers and presContext. In places where it is needed, it can be retrieved from the service manager. I removed a number of the getters and setters for prefs as the prefs will be the same from the service manager so we don't need getters. r=waterson a=rickg

This commit is contained in:
tbogard@aol.net
2000-03-02 07:13:02 +00:00
parent 77ba373e3f
commit 1c7bf629cf
39 changed files with 58 additions and 264 deletions

View File

@@ -129,7 +129,6 @@ public:
// nsIContentViewer
NS_IMETHOD Init(nsNativeWidget aParent,
nsIDeviceContext* aDeviceContext,
nsIPref* aPrefs,
const nsRect& aBounds,
nsScrollPreference aScrolling = nsScrollPreference_kAuto);
NS_IMETHOD BindToDocument(nsISupports* aDoc, const char* aCommand);
@@ -287,7 +286,6 @@ PluginViewerImpl::GetContainer(nsISupports** aResult)
NS_IMETHODIMP
PluginViewerImpl::Init(nsNativeWidget aNativeParent,
nsIDeviceContext* aDeviceContext,
nsIPref* aPrefs,
const nsRect& aBounds,
nsScrollPreference aScrolling)
{