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

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

Issue 1469183003: Use invalidation sets for :in-range and :out-of-range. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issue and expected results Created 5 years, 1 month 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 ec26ea7b8059d7bb96bead1c12079e645420d14f..c1ef198709fc3bee741667419f01790e794bcf5e 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -1103,6 +1103,10 @@ void HTMLInputElement::setValueInternal(const String& sanitizedValue, TextFieldE
{
m_valueIfDirty = sanitizedValue;
setNeedsValidityCheck();
+ if (m_inputType->isSteppable()) {
+ pseudoStateChanged(CSSSelector::PseudoInRange);
+ pseudoStateChanged(CSSSelector::PseudoOutOfRange);
+ }
if (document().focusedElement() == this)
document().frameHost()->chromeClient().didUpdateTextOfFocusedElementByNonUserInput();
}
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698