Index: Source/core/html/HTMLTitleElement.cpp |
diff --git a/Source/core/html/HTMLTitleElement.cpp b/Source/core/html/HTMLTitleElement.cpp |
index f1d1c4fb19ef8e53f21275ab4fa1ead73de71e4a..06b789fe7268d7cf6b75cb0d50d271f656d85552 100644 |
--- a/Source/core/html/HTMLTitleElement.cpp |
+++ b/Source/core/html/HTMLTitleElement.cpp |
@@ -50,7 +50,7 @@ Node::InsertionNotificationRequest HTMLTitleElement::insertedInto(ContainerNode* |
{ |
HTMLElement::insertedInto(insertionPoint); |
if (inDocument() && !isInShadowTree()) |
- document().setTitleElement(text(), this); |
+ document().setTitleElement(this); |
return InsertionDone; |
} |
@@ -65,7 +65,7 @@ void HTMLTitleElement::childrenChanged(const ChildrenChange& change) |
{ |
HTMLElement::childrenChanged(change); |
if (inDocument() && !isInShadowTree() && !m_ignoreTitleUpdatesWhenChildrenChange) |
- document().setTitleElement(text(), this); |
+ document().setTitleElement(this); |
} |
String HTMLTitleElement::text() const |