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

Unified Diff: Source/core/css/RuleFeature.cpp

Issue 206513004: Support invalidation sets for shadow combinators. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/RuleFeature.cpp
diff --git a/Source/core/css/RuleFeature.cpp b/Source/core/css/RuleFeature.cpp
index 999f678ff48849045f26dfea9d7d516995adb74d..d49e8ad5c84db54ec5bd1b046881e124a9d161b7 100644
--- a/Source/core/css/RuleFeature.cpp
+++ b/Source/core/css/RuleFeature.cpp
@@ -122,10 +122,11 @@ RuleFeatureSet::InvalidationSetMode RuleFeatureSet::supportsClassDescendantInval
} else if (!isSkippableComponentForInvalidation(*component)) {
return foundDescendantRelation ? UseLocalStyleChange : UseSubtreeStyleChange;
}
- // FIXME: We can probably support ShadowAll and ShadowDeep.
switch (component->relation()) {
case CSSSelector::Descendant:
case CSSSelector::Child:
+ case CSSSelector::Shadow:
+ case CSSSelector::ShadowDeep:
foundDescendantRelation = true;
// Fall through!
case CSSSelector::SubSelector:
« no previous file with comments | « LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698