зеркало из https://github.com/mozilla/pjs.git
Bug 458637. Make sure to properly flag the XSLT result document as not being ready for layout until we StartLayout. r+sr=sicking
This commit is contained in:
Родитель
9c2e09ae6d
Коммит
460147e339
|
@ -412,6 +412,7 @@ nsXMLContentSink::OnTransformDone(nsresult aResult,
|
|||
if (NS_FAILED(aResult) && contentViewer) {
|
||||
// Transform failed.
|
||||
if (domDoc) {
|
||||
aResultDocument->SetMayStartLayout(PR_FALSE);
|
||||
// We have an error document.
|
||||
contentViewer->SetDOMDocument(domDoc);
|
||||
}
|
||||
|
|
|
@ -2369,6 +2369,8 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_ASSERTION(!mDidInitialReflow, "Why are we being called?");
|
||||
|
||||
nsCOMPtr<nsIPresShell> kungFuDeathGrip(this);
|
||||
mDidInitialReflow = PR_TRUE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче