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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.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
Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index dba5ef41a41c4e8c6a006f724806722e8520a8bc..1d1fc3b29b17641308b1d063597918da10c980d4 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -1476,13 +1476,15 @@ void HTMLInputElement::updateClearButtonVisibility() {
}
void HTMLInputElement::willChangeForm() {
- removeFromRadioButtonGroup();
+ if (m_inputType)
+ removeFromRadioButtonGroup();
TextControlElement::willChangeForm();
}
void HTMLInputElement::didChangeForm() {
TextControlElement::didChangeForm();
- addToRadioButtonGroup();
+ if (m_inputType)
+ addToRadioButtonGroup();
}
Node::InsertionNotificationRequest HTMLInputElement::insertedInto(
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698