diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index dbe100cbb4d..f85028585e8 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -3935,7 +3935,7 @@ NS_IMETHODIMP nsWebShell::SetDocument(nsIDOMDocument *aDOMDoc, rootContent->SetDocument(doc, PR_TRUE); // (6) reflow the document - SetScrolling(-1, PR_FALSE); + InitFrameData(PR_FALSE); // Reset the scrolling state to initial PRInt32 i; PRInt32 ns = doc->GetNumberOfShells(); for (i = 0; i < ns; i++) diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index dbe100cbb4d..f85028585e8 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -3935,7 +3935,7 @@ NS_IMETHODIMP nsWebShell::SetDocument(nsIDOMDocument *aDOMDoc, rootContent->SetDocument(doc, PR_TRUE); // (6) reflow the document - SetScrolling(-1, PR_FALSE); + InitFrameData(PR_FALSE); // Reset the scrolling state to initial PRInt32 i; PRInt32 ns = doc->GetNumberOfShells(); for (i = 0; i < ns; i++)