Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index 3088ca5863f8671928e3b1d28392ea64ad615d64..dbb20c0e1cc0c9b2d57de655157525cb833131b4 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -770,4 +770,17 @@ void SVGSVGElement::inheritViewAttributes(SVGViewElement* viewElement) |
view->setZoomAndPan(zoomAndPan()); |
} |
+void SVGSVGElement::finishParsingChildren() |
+{ |
+ SVGGraphicsElement::finishParsingChildren(); |
+ |
+ // The outermost SVGSVGElement SVGLoad event is fired through Document::dispatchWindowLoadEvent. |
+ if (isOutermostSVGSVGElement()) |
+ return; |
+ |
+ // finishParsingChildren() is called when the close tag is reached for an element (e.g. </svg>) |
+ // we send SVGLoad events here if we can, otherwise they'll be sent when any required loads finish |
+ sendSVGLoadEventIfPossible(); |
+} |
+ |
} |