| 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 e570f343fb42957082a33c714f0a03b24600ad9b..eb5f7ba2b59b8ddc62c1852c9b2f4bdec78bf3a5 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
|
| @@ -48,7 +48,7 @@ SVGMPathElement::~SVGMPathElement()
|
| void SVGMPathElement::buildPendingResource()
|
| {
|
| clearResourceReferences();
|
| - if (!inShadowIncludingDocument())
|
| + if (!isConnected())
|
| return;
|
|
|
| AtomicString id;
|
| @@ -79,7 +79,7 @@ void SVGMPathElement::clearResourceReferences()
|
| Node::InsertionNotificationRequest SVGMPathElement::insertedInto(ContainerNode* rootParent)
|
| {
|
| SVGElement::insertedInto(rootParent);
|
| - if (rootParent->inShadowIncludingDocument())
|
| + if (rootParent->isConnected())
|
| buildPendingResource();
|
| return InsertionDone;
|
| }
|
| @@ -88,7 +88,7 @@ void SVGMPathElement::removedFrom(ContainerNode* rootParent)
|
| {
|
| SVGElement::removedFrom(rootParent);
|
| notifyParentOfPathChange(rootParent);
|
| - if (rootParent->inShadowIncludingDocument())
|
| + if (rootParent->isConnected())
|
| clearResourceReferences();
|
| }
|
|
|
|
|