mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 19:09:49 +00:00
Bug 136788, when going back and forth in history we still need to call StartLayout and EndLoad. Patch from peterv, r=jst, sr=heikki.
This commit is contained in:
parent
4de02df780
commit
6cf402c80c
@ -399,19 +399,19 @@ nsXMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
||||
loader->RemoveObserver(this);
|
||||
}
|
||||
|
||||
PRUint32 documentLoadType = 0;
|
||||
if (mWebShell) {
|
||||
if (!mXSLTransformMediator || NS_FAILED(rv)) {
|
||||
StartLayout();
|
||||
|
||||
// Scroll to Anchor only if the document was *not* loaded through history means.
|
||||
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(mWebShell));
|
||||
if (docShell) {
|
||||
|
||||
|
||||
PRUint32 documentLoadType = 0;
|
||||
docShell->GetLoadType(&documentLoadType);
|
||||
if (!(documentLoadType & nsIDocShell::LOAD_CMD_HISTORY)) {
|
||||
ScrollToRef();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Scroll to Anchor only if the document was *not* loaded through history means.
|
||||
if (!(documentLoadType & nsIDocShell::LOAD_CMD_HISTORY) && (!mXSLTransformMediator || NS_FAILED(rv))) {
|
||||
StartLayout();
|
||||
ScrollToRef();
|
||||
|
||||
mDocument->EndLoad();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user