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

Unified Diff: Source/core/html/HTMLInputElement.cpp

Issue 460343004: Fix update of validity cache value, so that it reflects the correct state of any FormControlElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP2 Created 6 years, 3 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
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 5d9b56ce74408ae5f8becae7c8b3cc747c925f01..82460195a68ac3d4c4389bfd1d779d632c6e68b0 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -454,6 +454,7 @@ void HTMLInputElement::updateType()
}
m_needsToUpdateViewValue = true;
+ setNeedsValidityCheck();
m_inputTypeView->updateView();
if (didRespectHeightAndWidth != m_inputType->shouldRespectHeightAndWidthAttributes()) {
@@ -474,7 +475,6 @@ void HTMLInputElement::updateType()
addToRadioButtonGroup();
- setNeedsValidityCheck();
notifyFormStateChanged();
}

Powered by Google App Engine
This is Rietveld 408576698