Bug 694165: After receiving final data for SVG-as-an-image, when we synchronously finish parsing, cancel any continue events that the parser posts. r=hsivonen

This commit is contained in:
Daniel Holbert 2011-10-14 11:19:18 -07:00
parent a613d39bb5
commit 49b23abcc5

View File

@ -302,6 +302,7 @@ SVGDocumentWrapper::OnStopRequest(nsIRequest* aRequest, nsISupports* ctxt,
// up to this promise.
nsCOMPtr<nsIParser> parser = do_QueryInterface(mListener);
while (!parser->IsComplete()) {
parser->CancelParsingEvents();
parser->ContinueInterruptedParsing();
}
FlushLayout();