Bug 14827: Naughty XUL documents no longer steal scrollbars r=harishd a=rickg

git-svn-id: svn://10.0.0.236/trunk@61350 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com 2000-02-19 02:41:48 +00:00
parent 39e1745d6a
commit 29e33fc22d
2 changed files with 6 additions and 2 deletions

View File

@ -3514,7 +3514,9 @@ nsXULDocument::StartLayout(void)
if (! webShell)
return NS_ERROR_UNEXPECTED;
webShell->SetScrolling(NS_STYLE_OVERFLOW_HIDDEN);
// Set current scrolling state (for this document) but not
// initial scrolling state (for this and all future documents)
webShell->SetScrolling(NS_STYLE_OVERFLOW_HIDDEN, PR_FALSE);
nsCOMPtr<nsIWebShellContainer> webShellContainer;
webShell->GetContainer(*getter_AddRefs(webShellContainer));

View File

@ -3514,7 +3514,9 @@ nsXULDocument::StartLayout(void)
if (! webShell)
return NS_ERROR_UNEXPECTED;
webShell->SetScrolling(NS_STYLE_OVERFLOW_HIDDEN);
// Set current scrolling state (for this document) but not
// initial scrolling state (for this and all future documents)
webShell->SetScrolling(NS_STYLE_OVERFLOW_HIDDEN, PR_FALSE);
nsCOMPtr<nsIWebShellContainer> webShellContainer;
webShell->GetContainer(*getter_AddRefs(webShellContainer));