Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 35d1caf87726e15e7b252dfb9ad41a00fad65467..82bb010580f05cf982e5449e2dc5df8a021e1570 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -1299,10 +1299,10 @@ void Document::setTitle(const String& title) |
} |
} |
+ updateTitle(title); |
+ |
if (m_titleElement && m_titleElement->hasTagName(titleTag)) |
toHTMLTitleElement(m_titleElement)->setText(title); |
- else |
- updateTitle(title); |
} |
void Document::setTitleElement(const String& title, Element* titleElement) |