Fire MozScrolledAreaChanged from nsDocShell::RestoreFromHistory() in case document root scroll frame isn't reflowed by the restore. r=roc
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user