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

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

Issue 948373002: Revert of Simplify form validation handling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | « Source/core/html/HTMLFieldSetElement.h ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFieldSetElement.cpp
diff --git a/Source/core/html/HTMLFieldSetElement.cpp b/Source/core/html/HTMLFieldSetElement.cpp
index 3342e44e7f3e5bd0baa9172958b6b90d1c6c39e4..90dcdd93ee02e5a02568ed56d383329e7377f530 100644
--- a/Source/core/html/HTMLFieldSetElement.cpp
+++ b/Source/core/html/HTMLFieldSetElement.cpp
@@ -76,6 +76,15 @@
return true;
}
+void HTMLFieldSetElement::setNeedsValidityCheck()
+{
+ // For now unconditionally order style recalculation, which triggers
+ // validity recalculation. In the near future, consider implement validity
+ // cache and recalculate style only if it changed.
+ pseudoStateChanged(CSSSelector::PseudoValid);
+ pseudoStateChanged(CSSSelector::PseudoInvalid);
+}
+
void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base)
{
for (HTMLFormControlElement& element : Traversal<HTMLFormControlElement>::descendantsOf(base))
« no previous file with comments | « Source/core/html/HTMLFieldSetElement.h ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698