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

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

Issue 2764023003: Updating :in-range should not rely on validation. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/invalidation/in-range-pseudo.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index fdbe2cb92558dd4df9696321d76e20450e06b0ae..c30ad8b23aec88f26e836c784223b0b29ef4f54f 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -582,10 +582,11 @@ void HTMLFormControlElement::setNeedsValidityCheck() {
fieldSetAncestorsSetNeedsValidityCheck(parentNode());
pseudoStateChanged(CSSSelector::PseudoValid);
pseudoStateChanged(CSSSelector::PseudoInvalid);
- pseudoStateChanged(CSSSelector::PseudoInRange);
- pseudoStateChanged(CSSSelector::PseudoOutOfRange);
}
+ pseudoStateChanged(CSSSelector::PseudoInRange);
+ pseudoStateChanged(CSSSelector::PseudoOutOfRange);
+
// Updates only if this control already has a validation message.
if (isValidationMessageVisible()) {
// Calls updateVisibleValidationMessage() even if m_isValid is not
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/invalidation/in-range-pseudo.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698