| Index: third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
|
| index ced878470d45840f130478646ca7b35b203c04bb..a6dd91e96d39d84b05149f4ba55359e40e5ef70e 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
|
| @@ -91,7 +91,7 @@ void SVGFEImageElement::buildPendingResource()
|
| return;
|
|
|
| AtomicString id;
|
| - Element* target = SVGURIReference::targetElementFromIRIString(hrefString(), treeScope(), &id);
|
| + Element* target = SVGURIReference::targetElementFromIRIString(hrefString(), treeScopeOrDocument(), &id);
|
| if (!target) {
|
| if (id.isEmpty()) {
|
| fetchImageResource();
|
| @@ -161,7 +161,7 @@ FilterEffect* SVGFEImageElement::build(SVGFilterBuilder*, Filter* filter)
|
| return FEImage::createWithImage(filter, image, m_preserveAspectRatio->currentValue());
|
| }
|
|
|
| - return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_preserveAspectRatio->currentValue());
|
| + return FEImage::createWithIRIReference(filter, treeScopeOrDocument(), hrefString(), m_preserveAspectRatio->currentValue());
|
| }
|
|
|
| } // namespace blink
|
|
|