| Index: third_party/WebKit/Source/core/svg/SVGViewSpec.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp b/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp
|
| index e19c19a536252912019871eb523b39554df3f73e..71ff123a8f4512a2fcc2a5a5130742bc7575547f 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp
|
| @@ -91,7 +91,7 @@ SVGElement* SVGViewSpec::viewTarget() const
|
| {
|
| if (!m_contextElement)
|
| return nullptr;
|
| - Element* element = m_contextElement->treeScope().getElementById(AtomicString(m_viewTargetString));
|
| + Element* element = m_contextElement->treeScopeOrDocument().getElementById(AtomicString(m_viewTargetString));
|
| if (!element || !element->isSVGElement())
|
| return nullptr;
|
| return toSVGElement(element);
|
|
|