Index: Source/core/css/resolver/ScopedStyleResolver.cpp |
diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp |
index e9693d0db983be5de1d7ef746151382d52539841..6974520b522a5565007c373941548d6f1aa83d41 100644 |
--- a/Source/core/css/resolver/ScopedStyleResolver.cpp |
+++ b/Source/core/css/resolver/ScopedStyleResolver.cpp |
@@ -132,10 +132,9 @@ void ScopedStyleResolver::collectMatchingAuthorRules(ElementRuleCollector& colle |
behaviorAtBoundary |= SelectorChecker::ScopeIsShadowHost; |
} |
- RuleRange ruleRange = collector.matchedResult().ranges.authorRuleRange(); |
for (size_t i = 0; i < m_authorStyleSheets.size(); ++i) { |
MatchRequest matchRequest(&m_authorStyleSheets[i]->contents()->ruleSet(), includeEmptyRules, scopingNode, applyAuthorStyles, i, m_authorStyleSheets[i]); |
- collector.collectMatchingRules(matchRequest, ruleRange, static_cast<SelectorChecker::BehaviorAtBoundary>(behaviorAtBoundary), cascadeScope, cascadeOrder); |
+ collector.collectMatchingRules(matchRequest, collector.matchedResult().ranges.authorRuleRange(), static_cast<SelectorChecker::BehaviorAtBoundary>(behaviorAtBoundary), cascadeScope, cascadeOrder); |
} |
} |