diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 593c7e0bd9d..589d2413aea 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -555,6 +555,7 @@ nsWebShell::Init(nsNativeWidget aNativeParent, //be associated with the nsIContentViewerContainer interfaces, //not the nsIWebShell interfaces. this is a hack. MMP nsRect aBounds(x,y,w,h); + nsWidgetInitData widgetInit; CreatePluginHost(aAllowPlugins); @@ -617,7 +618,6 @@ nsWebShell::Init(nsNativeWidget aNativeParent, goto done; } - nsWidgetInitData widgetInit; widgetInit.clipChildren = PR_FALSE; mWindow->Create(aNativeParent, aBounds, nsWebShell::HandleEvent, mDeviceContext, nsnull, nsnull, &widgetInit); diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 593c7e0bd9d..589d2413aea 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -555,6 +555,7 @@ nsWebShell::Init(nsNativeWidget aNativeParent, //be associated with the nsIContentViewerContainer interfaces, //not the nsIWebShell interfaces. this is a hack. MMP nsRect aBounds(x,y,w,h); + nsWidgetInitData widgetInit; CreatePluginHost(aAllowPlugins); @@ -617,7 +618,6 @@ nsWebShell::Init(nsNativeWidget aNativeParent, goto done; } - nsWidgetInitData widgetInit; widgetInit.clipChildren = PR_FALSE; mWindow->Create(aNativeParent, aBounds, nsWebShell::HandleEvent, mDeviceContext, nsnull, nsnull, &widgetInit);