| Index: Source/core/svg/graphics/SVGImage.cpp
|
| diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp
|
| index ad41c4869b097d7c5af06458bd72018f4fb87f07..dbbde30203e75fc51893e8ca4b6b3b8cd8486f6d 100644
|
| --- a/Source/core/svg/graphics/SVGImage.cpp
|
| +++ b/Source/core/svg/graphics/SVGImage.cpp
|
| @@ -430,6 +430,11 @@ bool SVGImage::dataChanged(bool allDataReceived)
|
| TRACE_EVENT0("blink", "SVGImage::dataChanged::load");
|
| loader.load(FrameLoadRequest(0, blankURL(), SubstituteData(data(), AtomicString("image/svg+xml", AtomicString::ConstructFromLiteral),
|
| AtomicString("UTF-8", AtomicString::ConstructFromLiteral), KURL(), ForceSynchronousLoad)));
|
| +
|
| + SVGSVGElement* rootElement = svgRootElement(m_page.get());
|
| + if (rootElement && rootElement->timeContainer()->hasAnimations())
|
| + UseCounter::count(frame->document(), UseCounter::SVGSMILAnimationInImage);
|
| +
|
| // Set the intrinsic size before a container size is available.
|
| m_intrinsicSize = containerSize();
|
| }
|
|
|