implement window.scrollbars.visible. bug 58539 r=hyatt,pinkerton

git-svn-id: svn://10.0.0.236/trunk@90574 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
2001-03-27 23:23:09 +00:00
parent 6ee1a148db
commit bde610585a
7 changed files with 58 additions and 70 deletions

View File

@@ -566,11 +566,9 @@ 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);
@@ -613,9 +611,6 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
}
}
if (aChromeMask & nsIWebBrowserChrome::CHROME_SCROLLBARS)
contentScrollbars = PR_TRUE;
zlevel = nsIXULWindow::normalZ;
if (aChromeMask & nsIWebBrowserChrome::CHROME_WINDOW_RAISED)
zlevel = nsIXULWindow::raisedZ;
@@ -644,8 +639,7 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
}
rv = window->Initialize(aParent, mAppShell, aUrl,
aShowWindow, aLoadDefaultPage,
contentScrollbars, zlevel,
aShowWindow, aLoadDefaultPage, zlevel,
aInitialWidth, aInitialHeight, widgetInitData);
if (NS_SUCCEEDED(rv)) {