| Index: third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
|
| index 8ff94fd3c13d0b9c5643983ab5d248026a9e197a..f576b5aa89b568d217c98bbe8422bb34e0d0b3b8 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
|
| @@ -51,7 +51,7 @@ SVGMPathElement::~SVGMPathElement()
|
| void SVGMPathElement::buildPendingResource()
|
| {
|
| clearResourceReferences();
|
| - if (!inDocument())
|
| + if (!inShadowIncludingDocument())
|
| return;
|
|
|
| AtomicString id;
|
| @@ -82,7 +82,7 @@ void SVGMPathElement::clearResourceReferences()
|
| Node::InsertionNotificationRequest SVGMPathElement::insertedInto(ContainerNode* rootParent)
|
| {
|
| SVGElement::insertedInto(rootParent);
|
| - if (rootParent->inDocument())
|
| + if (rootParent->inShadowIncludingDocument())
|
| buildPendingResource();
|
| return InsertionDone;
|
| }
|
| @@ -91,7 +91,7 @@ void SVGMPathElement::removedFrom(ContainerNode* rootParent)
|
| {
|
| SVGElement::removedFrom(rootParent);
|
| notifyParentOfPathChange(rootParent);
|
| - if (rootParent->inDocument())
|
| + if (rootParent->inShadowIncludingDocument())
|
| clearResourceReferences();
|
| }
|
|
|
|
|