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

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

Issue 628133004: Revert of Implement :valid and :invalid pseudoclass for <form> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/SharedStyleFinder.cpp
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
index 2e37f8c28edca916ecb29c0898801b01b8aabfca..ce16c0df1f0d4b7ef17a08556a3e785caf1906c7 100644
--- a/Source/core/css/resolver/SharedStyleFinder.cpp
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp
@@ -84,7 +84,7 @@
if (willValidate != element().willValidate())
return false;
- if (willValidate && (candidate.isValidElement() != element().isValidElement()))
+ if (willValidate && (candidate.isValidFormControlElement() != element().isValidFormControlElement()))
return false;
if (candidate.isInRange() != element().isInRange())
@@ -262,11 +262,6 @@
if (parent->hasID() && m_features.hasSelectorForId(parent->idForStyleResolution()))
return false;
if (!parent->childrenSupportStyleSharing())
- return false;
- }
-
- if (document().containsValidityStyleRules()) {
- if (candidate.isValidElement() != element().isValidElement())
return false;
}
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698