| 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 446614239e136245e44a262d266a905ae0a9f744..b1ad22509fc992c7bc8d6cd88abd335df5be24d3 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 (inDocument() && !isInShadowTree())
|
| + if (inShadowIncludingDocument() && !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->inDocument() && !insertionPoint->isInShadowTree())
|
| + if (insertionPoint->inShadowIncludingDocument() && !insertionPoint->isInShadowTree())
|
| document().removeTitle(this);
|
| }
|
|
|
| void HTMLTitleElement::childrenChanged(const ChildrenChange& change)
|
| {
|
| HTMLElement::childrenChanged(change);
|
| - if (inDocument() && !isInShadowTree() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| + if (inShadowIncludingDocument() && !isInShadowTree() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| document().setTitleElement(this);
|
| }
|
|
|
|
|