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

Unified Diff: Source/core/css/resolver/SharedStyleFinder.cpp

Issue 616443002: Implement :valid and :invalid pseudoclass for <form> (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/css/resolver/SharedStyleFinder.cpp
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
index ce16c0df1f0d4b7ef17a08556a3e785caf1906c7..057f3e1efbf3b79ebdffe2d2b3a0cfad043c44e9 100644
--- a/Source/core/css/resolver/SharedStyleFinder.cpp
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp
@@ -84,7 +84,7 @@ bool SharedStyleFinder::canShareStyleWithControl(Element& candidate) const
if (willValidate != element().willValidate())
return false;
- if (willValidate && (candidate.isValidFormControlElement() != element().isValidFormControlElement()))
+ if (willValidate && (candidate.isValidElement() != element().isValidElement()))
return false;
if (candidate.isInRange() != element().isInRange())

Powered by Google App Engine
This is Rietveld 408576698