Bug 217120. Always make an attempt to scroll to history position after restoring scroll position in EndLoad, just in case no reflows happen again. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159746 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3639,6 +3639,13 @@ PresShell::EndLoad(nsIDocument *aDocument)
|
||||
GetRootScrollFrame(mPresContext, rootFrame, &scrollFrame);
|
||||
if (scrollFrame) {
|
||||
FrameManager()->RestoreFrameStateFor(scrollFrame, historyState, nsIStatefulFrame::eDocumentScrollState);
|
||||
|
||||
nsIScrollableFrame* scrollableFrame;
|
||||
CallQueryInterface(scrollFrame, &scrollableFrame);
|
||||
NS_ASSERTION(scrollableFrame, "RootScrollFrame is not scrollable?");
|
||||
if (scrollableFrame) {
|
||||
scrollableFrame->ScrollToRestoredPosition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user