Chromium Code Reviews| Index: Source/core/svg/SVGSVGElement.cpp |
| diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
| index 3088ca5863f8671928e3b1d28392ea64ad615d64..a17c4400fcf7a59be87bfb1fa6412dde98a9b598 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() |
| +{ |
| + SVGElement::finishParsingChildren(); |
|
pdr.
2014/05/06 22:53:42
Nit: please call SVGGraphicsElement::finishParsing
|
| + |
| + // 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(); |
| +} |
| + |
| } |