| Index: third_party/WebKit/Source/core/html/HTMLTitleElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLTitleElement.cpp b/third_party/WebKit/Source/core/html/HTMLTitleElement.cpp
|
| index f6c05288d4ced6d4cfb471055d2514522052f919..824c66b410f49e51d6d9d4c4362a63ba0d84c808 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTitleElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTitleElement.cpp
|
| @@ -46,7 +46,7 @@ DEFINE_NODE_FACTORY(HTMLTitleElement)
|
| Node::InsertionNotificationRequest HTMLTitleElement::insertedInto(ContainerNode* insertionPoint)
|
| {
|
| HTMLElement::insertedInto(insertionPoint);
|
| - if (inShadowIncludingDocument() && !isInShadowTree())
|
| + if (isConnected() && !isInShadowTree())
|
| document().setTitleElement(this);
|
| return InsertionDone;
|
| }
|
| @@ -54,14 +54,14 @@ Node::InsertionNotificationRequest HTMLTitleElement::insertedInto(ContainerNode*
|
| void HTMLTitleElement::removedFrom(ContainerNode* insertionPoint)
|
| {
|
| HTMLElement::removedFrom(insertionPoint);
|
| - if (insertionPoint->inShadowIncludingDocument() && !insertionPoint->isInShadowTree())
|
| + if (insertionPoint->isConnected() && !insertionPoint->isInShadowTree())
|
| document().removeTitle(this);
|
| }
|
|
|
| void HTMLTitleElement::childrenChanged(const ChildrenChange& change)
|
| {
|
| HTMLElement::childrenChanged(change);
|
| - if (inShadowIncludingDocument() && !isInShadowTree() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| + if (isConnected() && !isInShadowTree() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| document().setTitleElement(this);
|
| }
|
|
|
|
|