Index: third_party/WebKit/Source/core/css/RuleSet.cpp |
diff --git a/third_party/WebKit/Source/core/css/RuleSet.cpp b/third_party/WebKit/Source/core/css/RuleSet.cpp |
index db68b88cfd0aa6e67f6b0ecee2cc744aa9ef00e1..bc735aa64c17e9154a58c9de90ac2073e92fa9d2 100644 |
--- a/third_party/WebKit/Source/core/css/RuleSet.cpp |
+++ b/third_party/WebKit/Source/core/css/RuleSet.cpp |
@@ -260,8 +260,10 @@ void RuleSet::addChildRules(const WillBeHeapVector<RefPtrWillBeMember<StyleRuleB |
for (size_t selectorIndex = 0; selectorIndex != kNotFound; selectorIndex = selectorList.indexOfNextSelectorAfter(selectorIndex)) { |
if (selectorList.selectorUsesDeepCombinatorOrShadowPseudo(selectorIndex)) { |
m_deepCombinatorOrShadowPseudoRules.append(MinimalRuleData(styleRule, selectorIndex, addRuleFlags)); |
- } else if (selectorList.selectorHasShadowDistributed(selectorIndex)) { |
+ } else if (selectorList.selectorHasContentPseudo(selectorIndex)) { |
m_shadowDistributedRules.append(MinimalRuleData(styleRule, selectorIndex, addRuleFlags)); |
+ } else if (selectorList.selectorHasSlottedPseudo(selectorIndex)) { |
+ m_shadowSlottedRules.append(MinimalRuleData(styleRule, selectorIndex, addRuleFlags)); |
} else { |
addRule(styleRule, selectorIndex, addRuleFlags); |
} |
@@ -342,6 +344,7 @@ void RuleSet::compactRules() |
m_keyframesRules.shrinkToFit(); |
m_deepCombinatorOrShadowPseudoRules.shrinkToFit(); |
m_shadowDistributedRules.shrinkToFit(); |
+ m_shadowSlottedRules.shrinkToFit(); |
} |
DEFINE_TRACE(MinimalRuleData) |
@@ -383,6 +386,7 @@ DEFINE_TRACE(RuleSet) |
visitor->trace(m_keyframesRules); |
visitor->trace(m_deepCombinatorOrShadowPseudoRules); |
visitor->trace(m_shadowDistributedRules); |
+ visitor->trace(m_shadowSlottedRules); |
visitor->trace(m_viewportDependentMediaQueryResults); |
visitor->trace(m_deviceDependentMediaQueryResults); |
visitor->trace(m_pendingRules); |