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:
Boris Zbarsky 2008-10-10 13:44:43 -04:00
parent 2893cd87cd
commit d0177423c2
2 changed files with 3 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;