| 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 824c66b410f49e51d6d9d4c4362a63ba0d84c808..29b510603a4f21a4f81b7547c16bb795c1ce5353 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 (isConnected() && !isInShadowTree())
|
| + if (isInDocumentTree())
|
| document().setTitleElement(this);
|
| return InsertionDone;
|
| }
|
| @@ -54,14 +54,14 @@ Node::InsertionNotificationRequest HTMLTitleElement::insertedInto(ContainerNode*
|
| void HTMLTitleElement::removedFrom(ContainerNode* insertionPoint)
|
| {
|
| HTMLElement::removedFrom(insertionPoint);
|
| - if (insertionPoint->isConnected() && !insertionPoint->isInShadowTree())
|
| + if (insertionPoint->isInDocumentTree())
|
| document().removeTitle(this);
|
| }
|
|
|
| void HTMLTitleElement::childrenChanged(const ChildrenChange& change)
|
| {
|
| HTMLElement::childrenChanged(change);
|
| - if (isConnected() && !isInShadowTree() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| + if (isInDocumentTree() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| document().setTitleElement(this);
|
| }
|
|
|
|
|