Index: Source/core/css/RuleSet.cpp |
diff --git a/Source/core/css/RuleSet.cpp b/Source/core/css/RuleSet.cpp |
index 8b3060675d647fc5bcf886490199b1e63b541680..fefc1e4310b1aa9006b8ffcfa65737dd361a0a0b 100644 |
--- a/Source/core/css/RuleSet.cpp |
+++ b/Source/core/css/RuleSet.cpp |
@@ -274,7 +274,7 @@ void RuleSet::addChildRules(const WillBeHeapVector<RefPtrWillBeMember<StyleRuleB |
const CSSSelectorList& selectorList = styleRule->selectorList(); |
for (size_t selectorIndex = 0; selectorIndex != kNotFound; selectorIndex = selectorList.indexOfNextSelectorAfter(selectorIndex)) { |
- if (selectorList.hasCombinatorCrossingTreeBoundaryAt(selectorIndex)) { |
+ if (selectorList.selectorCrossesTreeScopes(selectorIndex)) { |
m_treeBoundaryCrossingRules.append(MinimalRuleData(styleRule, selectorIndex, addRuleFlags)); |
} else if (selectorList.hasShadowDistributedAt(selectorIndex)) { |
m_shadowDistributedRules.append(MinimalRuleData(styleRule, selectorIndex, addRuleFlags)); |