Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 3635b9b0180081041d5b80f061a2a4a92addb803..ac081a25c08963787dae5c868e0cbab6f673a910 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -666,7 +666,7 @@ Element* Document::createElement(const AtomicString& name,
*this,
QualifiedName(nullAtom, localName, HTMLNames::xhtmlNamespaceURI));
}
- return HTMLElementFactory::createHTMLElement(localName, *this, 0,
+ return HTMLElementFactory::createHTMLElement(localName, *this,
CreatedByCreateElement);
}
return Element::create(QualifiedName(nullAtom, name, nullAtom), this);
@@ -1174,8 +1174,7 @@ Element* Document::createElement(const QualifiedName& qName,
// FIXME: Use registered namespaces and look up in a hash to find the right
// factory.
if (qName.namespaceURI() == xhtmlNamespaceURI)
- e = HTMLElementFactory::createHTMLElement(qName.localName(), *this, 0,
- flags);
+ e = HTMLElementFactory::createHTMLElement(qName.localName(), *this, flags);
else if (qName.namespaceURI() == SVGNames::svgNamespaceURI)
e = SVGElementFactory::createSVGElement(qName.localName(), *this, flags);

Powered by Google App Engine
This is Rietveld 408576698