| Index: third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp b/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| index f825bd4f2962ec716f6e107142f0e488931940ff..a54e2874c68600f22f6b3ba9109d9014208eb195 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| @@ -38,7 +38,7 @@ DEFINE_NODE_FACTORY(SVGTitleElement)
|
| Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode* rootParent)
|
| {
|
| SVGElement::insertedInto(rootParent);
|
| - if (!rootParent->inShadowIncludingDocument())
|
| + if (!rootParent->isConnected())
|
| return InsertionDone;
|
| if (hasChildren() && document().isSVGDocument())
|
| document().setTitleElement(this);
|
| @@ -48,14 +48,14 @@ Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
|
| void SVGTitleElement::removedFrom(ContainerNode* rootParent)
|
| {
|
| SVGElement::removedFrom(rootParent);
|
| - if (rootParent->inShadowIncludingDocument() && document().isSVGDocument())
|
| + if (rootParent->isConnected() && document().isSVGDocument())
|
| document().removeTitle(this);
|
| }
|
|
|
| void SVGTitleElement::childrenChanged(const ChildrenChange& change)
|
| {
|
| SVGElement::childrenChanged(change);
|
| - if (inShadowIncludingDocument() && document().isSVGDocument() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| + if (isConnected() && document().isSVGDocument() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| document().setTitleElement(this);
|
| }
|
|
|
|
|