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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp

Issue 2557583003: Move Form Association Code to FormAssociated::associateWith (Closed)
Patch Set: Check for m_inputType before accessing it 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index 5f6d4e11c48bcd7583802123b4b76faed597561a..a80049ca2c68aa9a3ac16adcac1685cae3cadab5 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -60,7 +60,6 @@ HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName,
m_validityIsDirty(false),
m_wasFocusedByMouse(false) {
setHasCustomStyleCallbacks();
- associateByParser(form);
}
HTMLFormControlElement::~HTMLFormControlElement() {}
@@ -627,6 +626,8 @@ void HTMLFormControlElement::copyNonAttributePropertiesFromElement(
setNeedsValidityCheck();
}
-void HTMLFormControlElement::associateWith(HTMLFormElement*){};
+void HTMLFormControlElement::associateWith(HTMLFormElement* form) {
+ associateByParser(form);
+};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698