| Index: Source/WebCore/html/FormAssociatedElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/FormAssociatedElement.cpp (revision 146918)
|
| +++ Source/WebCore/html/FormAssociatedElement.cpp (working copy)
|
| @@ -25,9 +25,7 @@
|
| #include "config.h"
|
| #include "FormAssociatedElement.h"
|
|
|
| -#include "EditorClient.h"
|
| #include "FormController.h"
|
| -#include "Frame.h"
|
| #include "HTMLFormControlElement.h"
|
| #include "HTMLFormElement.h"
|
| #include "HTMLNames.h"
|
| @@ -159,11 +157,7 @@
|
|
|
| void FormAssociatedElement::resetFormOwner()
|
| {
|
| - HTMLFormElement* originalForm = m_form;
|
| setForm(findAssociatedForm(toHTMLElement(this), m_form));
|
| - HTMLElement* element = toHTMLElement(this);
|
| - if (m_form && m_form != originalForm && m_form->inDocument())
|
| - element->document()->didAssociateFormControl(element);
|
| }
|
|
|
| void FormAssociatedElement::formAttributeChanged()
|
| @@ -171,11 +165,7 @@
|
| HTMLElement* element = toHTMLElement(this);
|
| if (!element->fastHasAttribute(formAttr)) {
|
| // The form attribute removed. We need to reset form owner here.
|
| - HTMLFormElement* originalForm = m_form;
|
| setForm(element->findFormAncestor());
|
| - HTMLElement* element = toHTMLElement(this);
|
| - if (m_form && m_form != originalForm && m_form->inDocument())
|
| - element->document()->didAssociateFormControl(element);
|
| m_formAttributeTargetObserver = nullptr;
|
| } else {
|
| resetFormOwner();
|
|
|