| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index 9fcdd1c8cab52e889fdf09f6584fee3bdb8db278..6d6325aad2675d79d1d63626340f8f4dc83a7818 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"
|
| @@ -1534,7 +1534,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;
|
|
|