| 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 e5811466366d5e1fc8155f06a7d8d087c4342f1e..c1d7bd82ef879be38fa98a1c295b3d77aaf4c2fa 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::fetchImageResource()
|
| void SVGFEImageElement::buildPendingResource()
|
| {
|
| clearResourceReferences();
|
| - if (!inDocument())
|
| + if (!inShadowIncludingDocument())
|
| return;
|
|
|
| AtomicString id;
|
| @@ -139,13 +139,13 @@ Node::InsertionNotificationRequest SVGFEImageElement::insertedInto(ContainerNode
|
| void SVGFEImageElement::removedFrom(ContainerNode* rootParent)
|
| {
|
| SVGFilterPrimitiveStandardAttributes::removedFrom(rootParent);
|
| - if (rootParent->inDocument())
|
| + if (rootParent->inShadowIncludingDocument())
|
| clearResourceReferences();
|
| }
|
|
|
| void SVGFEImageElement::notifyFinished(Resource*)
|
| {
|
| - if (!inDocument())
|
| + if (!inShadowIncludingDocument())
|
| return;
|
|
|
| Element* parent = parentElement();
|
|
|