mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
506fdf23b9
commit
dec3bea943
@ -302,6 +302,7 @@ SVGDocumentWrapper::OnStopRequest(nsIRequest* aRequest, nsISupports* ctxt,
|
|||||||
// up to this promise.
|
// up to this promise.
|
||||||
nsCOMPtr<nsIParser> parser = do_QueryInterface(mListener);
|
nsCOMPtr<nsIParser> parser = do_QueryInterface(mListener);
|
||||||
while (!parser->IsComplete()) {
|
while (!parser->IsComplete()) {
|
||||||
|
parser->CancelParsingEvents();
|
||||||
parser->ContinueInterruptedParsing();
|
parser->ContinueInterruptedParsing();
|
||||||
}
|
}
|
||||||
FlushLayout();
|
FlushLayout();
|
||||||
|
Loading…
Reference in New Issue
Block a user