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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user