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

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

Issue 601633004: Revert "Revert of Fix update of validity cache value, so that it reflects the correct state of any … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 de47b2af61fe06156d33abb622a8116abf237d3c..88922ba075176866980e1b3f1bdcbde49e5c5a27 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -448,6 +448,7 @@ void HTMLInputElement::updateType()
}
m_needsToUpdateViewValue = true;
+ setNeedsValidityCheck();
m_inputTypeView->updateView();
if (didRespectHeightAndWidth != m_inputType->shouldRespectHeightAndWidthAttributes()) {
@@ -468,7 +469,6 @@ void HTMLInputElement::updateType()
addToRadioButtonGroup();
- setNeedsValidityCheck();
notifyFormStateChanged();
}

Powered by Google App Engine
This is Rietveld 408576698