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

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

Issue 1565263003: Implement CSS parser part for ::slotted pseudo element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address rune's first round of comments in layout test. Created 4 years, 11 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: third_party/WebKit/Source/core/css/RuleFeature.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.cpp b/third_party/WebKit/Source/core/css/RuleFeature.cpp
index 425fc784e8edda35effaefa7a2e2f052e23ff395..954895e523dab1abfa531cdaccc3cb7a0f6ec471 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeature.cpp
@@ -194,6 +194,9 @@ bool requiresSubtreeInvalidation(const CSSSelector& selector)
case CSSSelector::PseudoHostContext:
// :host-context matches a shadow host, yet the simple selectors inside
// :host-context matches an ancestor of the shadow host.
+ case CSSSelector::PseudoSlotted:
+ // TODO(kochi): This recalculates a bit more than necessary. Find out a way
+ // to avoid unnecessary recalculation.
return true;
default:
ASSERT(supportsInvalidation(selector.pseudoType()));

Powered by Google App Engine
This is Rietveld 408576698