Chromium Code Reviews| Index: Source/core/dom/Document.cpp |
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
| index 90e8afb08463db1fc27d15d38f0514117fc655b1..e16e9271ac324fa36b123150381e4c5e5f67f8b9 100644 |
| --- a/Source/core/dom/Document.cpp |
| +++ b/Source/core/dom/Document.cpp |
| @@ -713,7 +713,7 @@ PassRefPtr<Element> Document::createElement(const AtomicString& name, ExceptionS |
| if (isXHTMLDocument() || isHTMLDocument()) |
| return HTMLElementFactory::createHTMLElement(isHTMLDocument() ? name.lower() : name, *this, 0, false); |
| - return createElement(QualifiedName(nullAtom, name, nullAtom), false); |
| + return Element::create(QualifiedName(nullAtom, name, nullAtom), this); |
| } |
| PassRefPtr<Element> Document::createElement(const AtomicString& localName, const AtomicString& typeExtension, ExceptionState& exceptionState) |
| @@ -1337,7 +1337,7 @@ void Document::setTitle(const String& title) |
| m_titleElement = 0; |
| else if (!m_titleElement) { |
| if (HTMLElement* headElement = head()) { |
| - m_titleElement = createElement(titleTag, false); |
| + m_titleElement = HTMLTitleElement::create(*this); |
|
Inactive
2014/02/13 17:26:22
This no longer updates m_sawElementsInKnownNamespa
|
| headElement->appendChild(m_titleElement); |
| } |
| } |