Fire MozScrolledAreaChanged from nsDocShell::RestoreFromHistory() in case document root scroll frame isn't reflowed by the restore. r=roc

This commit is contained in:
Roy Frostig
2009-10-25 00:04:18 -07:00
parent 4738676049
commit eb80c5f781
4 changed files with 113 additions and 73 deletions

View File

@@ -6956,6 +6956,11 @@ nsDocShell::RestoreFromHistory()
newBounds.y, newBounds.width, newBounds.height);
#endif
mContentViewer->SetBounds(newBounds);
} else {
nsIScrollableFrame *rootScrollFrame = do_QueryFrame(shell->GetRootScrollFrame());
if (rootScrollFrame) {
rootScrollFrame->PostScrolledAreaEventForCurrentArea();
}
}
}