sync with nsWebShellWindow.h rev 1.109

This commit is contained in:
danm@netscape.com
2000-08-11 03:44:49 +00:00
parent 52fc6741a9
commit 5fce9207f4

View File

@@ -536,9 +536,11 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
nsWebShellWindow* window;
PRBool intrinsicallySized;
PRUint32 zlevel;
PRBool contentScrollbars;
*aResult = nsnull;
intrinsicallySized = PR_FALSE;
contentScrollbars = PR_FALSE;
window = new nsWebShellWindow();
// Bump count to one so it doesn't die on us while doing init.
nsCOMPtr<nsIXULWindow> tempRef(window);
@@ -577,6 +579,9 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
}
}
if (aChromeMask & nsIWebBrowserChrome::scrollbarsOn)
contentScrollbars = PR_TRUE;
zlevel = nsIXULWindow::normalZ;
if (aChromeMask & nsIWebBrowserChrome::windowRaised)
zlevel = nsIXULWindow::raisedZ;
@@ -605,7 +610,8 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
}
rv = window->Initialize(aParent, mAppShell, aUrl,
aShowWindow, aLoadDefaultPage, zlevel,
aShowWindow, aLoadDefaultPage,
contentScrollbars, zlevel,
aInitialWidth, aInitialHeight, widgetInitData);
if (NS_SUCCEEDED(rv)) {