| Index: Source/core/css/ElementRuleCollector.cpp
|
| diff --git a/Source/core/css/ElementRuleCollector.cpp b/Source/core/css/ElementRuleCollector.cpp
|
| index a69a3d81939f58e138cc7df827d6ef78155cef7f..880fa141e3d4b27436a7d6fb41ba03a4bf032ea1 100644
|
| --- a/Source/core/css/ElementRuleCollector.cpp
|
| +++ b/Source/core/css/ElementRuleCollector.cpp
|
| @@ -342,7 +342,9 @@ bool ElementRuleCollector::hasAnyMatchingRules(RuleSet* ruleSet)
|
| // information about "scope".
|
| int firstRuleIndex = -1, lastRuleIndex = -1;
|
| RuleRange ruleRange(firstRuleIndex, lastRuleIndex);
|
| - collectMatchingRules(MatchRequest(ruleSet), ruleRange);
|
| + MatchRequest matchRequest(ruleSet);
|
| + collectMatchingRules(matchRequest, ruleRange);
|
| + collectMatchingShadowHostRules(matchRequest, ruleRange);
|
|
|
| return !m_matchedRules.isEmpty();
|
| }
|
|
|