| Index: Source/core/html/HTMLFormElement.cpp
|
| diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
|
| index f86bbb96f8af1baaed39b2adf51c7743f5514ada..58240bb9a30dfc4c5d6464a03276ca9a851224b7 100644
|
| --- a/Source/core/html/HTMLFormElement.cpp
|
| +++ b/Source/core/html/HTMLFormElement.cpp
|
| @@ -59,8 +59,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)
|
| @@ -70,20 +70,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()
|
|
|