mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
2893cd87cd
commit
d0177423c2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user