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

Unified Diff: Source/WebCore/html/FormAssociatedElement.cpp

Issue 12670015: Revert 146672 "Add client callbacks to notify of changes of asso..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 months 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
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/html/HTMLFormElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698