Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index 880b9adeb8a9de71c2e87bc0b52c31361df87af0..5e5df71263c78d5f45f263e62ed16e95f39ea3fd 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -728,7 +728,8 @@ void HTMLFormElement::setNeedsValidityCheck() |
// For now unconditionally order style recalculation, which triggers |
dglazkov
2014/10/24 17:13:25
Is this comment still valid?
rune
2014/10/24 20:12:26
Yes. With this CL we still recalculate style witho
|
// validity recalculation. In the near future, implement validity cache and |
// recalculate style only if it changed. |
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::createWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Invalid)); |
+ pseudoStateChanged(CSSSelector::PseudoValid); |
+ pseudoStateChanged(CSSSelector::PseudoInvalid); |
} |
bool HTMLFormElement::checkValidity() |