| Index: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| index 309b51310cdc3d36f5cd90c13d7ddcf626597f7e..6b5356491d7ccd92813542b58f4bd0bf30b0f96d 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| @@ -146,7 +146,7 @@ static inline AtomicString targetReferenceFromResource(SVGElement& element)
|
| else
|
| ASSERT_NOT_REACHED();
|
|
|
| - return SVGURIReference::fragmentIdentifierFromIRIString(target, element.treeScope());
|
| + return SVGURIReference::fragmentIdentifierFromIRIString(target, element.treeScopeOrDocument());
|
| }
|
|
|
| static inline bool svgPaintTypeHasURL(SVGPaintType paintType)
|
| @@ -217,7 +217,7 @@ PassOwnPtr<SVGResources> SVGResources::buildResources(const LayoutObject* object
|
| const AtomicString& tagName = element->localName();
|
| ASSERT(!tagName.isNull());
|
|
|
| - TreeScope& treeScope = element->treeScope();
|
| + TreeScope& treeScope = element->treeScopeOrDocument();
|
| SVGDocumentExtensions& extensions = element->document().accessSVGExtensions();
|
|
|
| OwnPtr<SVGResources> resources;
|
|
|