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

Unified Diff: Source/core/html/HTMLFormControlElement.h

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/HTMLFormControlElement.h
diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h
index b6781d3eabc01255730e0d7b2c48a1e7c60ceb89..ce5a4fdd1d7f905b07fe2245bbb8da7bffab4cef 100644
--- a/Source/core/html/HTMLFormControlElement.h
+++ b/Source/core/html/HTMLFormControlElement.h
@@ -181,6 +181,8 @@ private:
// Cache of valid().
// But "candidate for constraint validation" doesn't affect m_isValid.
bool m_isValid : 1;
+ // Dirty flag that controls updating valid() cache.
+ bool m_validityIsDirty : 1;
bool m_wasChangedSinceLastFormControlChangeEvent : 1;
bool m_wasFocusedByMouse : 1;

Powered by Google App Engine
This is Rietveld 408576698