Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
| diff --git a/third_party/WebKit/Source/core/css/CSSSelectorList.cpp b/third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
| index 114fb8460e58dd0739288b723d1235976e1d1985..8fa536fe921cd859080de8ececb3faa696151fbb 100644 |
| --- a/third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
| +++ b/third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
| @@ -168,6 +168,13 @@ bool CSSSelectorList::selectorHasShadowDistributed(size_t index) const |
| }, selectorAt(index)); |
| } |
| +bool CSSSelectorList::selectorHasShadowSlotted(size_t index) const |
| +{ |
| + return forEachTagSelector([](const CSSSelector& selector) -> bool { |
| + return selector.relationIsAffectedByPseudoSlotted(); |
|
rune
2016/01/13 09:59:09
If you remove the relationIsAffectedByPseudoSlotte
kochi
2016/01/14 09:02:20
Done.
|
| + }, selectorAt(index)); |
| +} |
| + |
| bool CSSSelectorList::selectorUsesDeepCombinatorOrShadowPseudo(size_t index) const |
| { |
| return forEachTagSelector([](const CSSSelector& selector) -> bool { |