Index: Source/core/css/ElementRuleCollector.h |
diff --git a/Source/core/css/ElementRuleCollector.h b/Source/core/css/ElementRuleCollector.h |
index 36988a61e35c7cb64939dbeb254d2dce2ad54e31..efc9ec94dd083e5b603018f773f3908e70cbd079 100644 |
--- a/Source/core/css/ElementRuleCollector.h |
+++ b/Source/core/css/ElementRuleCollector.h |
@@ -141,8 +141,8 @@ private: |
if (!rules) |
return; |
- for (typename RuleDataListType::const_iterator it = rules->begin(), end = rules->end(); it != end; ++it) |
- collectRuleIfMatches(*it, cascadeScope, cascadeOrder, matchRequest, ruleRange); |
+ for (const auto& rule : *rules) |
+ collectRuleIfMatches(rule, cascadeScope, cascadeOrder, matchRequest, ruleRange); |
} |
bool ruleMatches(const RuleData&, const ContainerNode* scope, SelectorChecker::MatchResult*); |