| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 3db7d47193f78059d23ee8b87b56404b767b8399..dd5226ba0ec7e040a46f0f8e559f7575a0c7fd87 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)
|
|
|