Index: Source/core/svg/graphics/SVGImage.cpp |
diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp |
index 57c8ed45c144cb26cd2cc1c8f1638d0d60f4b36b..1e90cfe0ef7c3080804e2a278bf33ed2a1e6bfb2 100644 |
--- a/Source/core/svg/graphics/SVGImage.cpp |
+++ b/Source/core/svg/graphics/SVGImage.cpp |
@@ -424,6 +424,12 @@ bool SVGImage::dataChanged(bool allDataReceived) |
// types. |
EventDispatchForbiddenScope::AllowUserAgentEvents allowUserAgentEvents; |
+ if (m_page) { |
+ toLocalFrame(m_page->mainFrame())->loader().load(FrameLoadRequest(0, blankURL(), SubstituteData(data(), AtomicString("image/svg+xml", AtomicString::ConstructFromLiteral), |
+ AtomicString("UTF-8", AtomicString::ConstructFromLiteral), KURL(), ForceSynchronousLoad))); |
+ return true; |
+ } |
+ |
static FrameLoaderClient* dummyFrameLoaderClient = new EmptyFrameLoaderClient; |
Page::PageClients pageClients; |