Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Unified Diff: Source/core/css/ElementRuleCollector.cpp

Issue 1009893004: Missing collectMatchingShadowHostRules call from hasAnyMatchingRules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/shadow/style-sharing-host-attribute-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « LayoutTests/fast/dom/shadow/style-sharing-host-attribute-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698