Bug 656244: Finish *all* remaining parsing in SVGDocumentWrapper::OnStopRequest. r=hsivonen

This commit is contained in:
Daniel Holbert 2011-06-21 10:38:44 -07:00
parent b83c1a79d8
commit 5beebd3d47

View File

@ -301,7 +301,7 @@ SVGDocumentWrapper::OnStopRequest(nsIRequest* aRequest, nsISupports* ctxt,
// finish parsing & layout in our helper-document to make sure we can hold
// up to this promise.
nsCOMPtr<nsIParser> parser = do_QueryInterface(mListener);
if (!parser->IsComplete()) {
while (!parser->IsComplete()) {
parser->ContinueInterruptedParsing();
}
FlushLayout();