Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 9b4dd8421578dfb9cf54d9875ad76d5057b30c15..9411f3899066756806f74b2735f956f1a9d31599 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -70,7 +70,7 @@ |
#include "core/rendering/compositing/RenderLayerCompositor.h" |
#include "core/rendering/style/RenderStyle.h" |
#include "core/rendering/svg/RenderSVGRoot.h" |
-#include "core/svg/SVGDocument.h" |
+#include "core/svg/SVGDocumentExtensions.h" |
#include "core/svg/SVGSVGElement.h" |
#include "platform/TraceEvent.h" |
#include "platform/fonts/FontCache.h" |
@@ -1535,7 +1535,7 @@ bool FrameView::scrollToAnchor(const String& name) |
m_frame->document()->setCSSTarget(anchorNode); |
if (m_frame->document()->isSVGDocument()) { |
- if (SVGSVGElement* svg = toSVGDocument(m_frame->document())->rootElement()) { |
+ if (SVGSVGElement* svg = SVGDocumentExtensions::rootElement(*m_frame->document())) { |
svg->setupInitialView(name, anchorNode); |
if (!anchorNode) |
return true; |