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

Unified Diff: Source/core/html/HTMLFormElement.cpp

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month 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: Source/core/html/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index 914b7a2eb5715a534399024d0a987ae489820d18..efc49095dc1b634e55fe5f6416fad62a54db1f19 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -60,8 +60,8 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLFormElement::HTMLFormElement(Document& document)
+ : HTMLElement(formTag, document)
, m_associatedElementsBeforeIndex(0)
, m_associatedElementsAfterIndex(0)
, m_wasUserSubmitted(false)
@@ -71,20 +71,13 @@ HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document& documen
, m_wasDemoted(false)
, m_requestAutocompleteTimer(this, &HTMLFormElement::requestAutocompleteTimerFired)
{
- ASSERT(hasTagName(formTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLFormElement> HTMLFormElement::create(Document& document)
{
UseCounter::count(document, UseCounter::FormElement);
- return adoptRef(new HTMLFormElement(formTag, document));
-}
-
-PassRefPtr<HTMLFormElement> HTMLFormElement::create(const QualifiedName& tagName, Document& document)
-{
- UseCounter::count(document, UseCounter::FormElement);
- return adoptRef(new HTMLFormElement(tagName, document));
+ return adoptRef(new HTMLFormElement(document));
}
HTMLFormElement::~HTMLFormElement()

Powered by Google App Engine
This is Rietveld 408576698