Title: [153881] trunk/Source/WebCore
- Revision
- 153881
- Author
- [email protected]
- Date
- 2013-08-09 03:15:09 -0700 (Fri, 09 Aug 2013)
Log Message
ElementRuleCollector: Use range-based for syntax in rule collection loop.
<http://webkit.org/b/119617>
<rdar://problem/14695311>
Reviewed by Antti Koivisto.
* css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::doCollectMatchingRulesForList):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (153880 => 153881)
--- trunk/Source/WebCore/ChangeLog 2013-08-09 09:58:52 UTC (rev 153880)
+++ trunk/Source/WebCore/ChangeLog 2013-08-09 10:15:09 UTC (rev 153881)
@@ -1,5 +1,16 @@
2013-08-09 Andreas Kling <[email protected]>
+ ElementRuleCollector: Use range-based for syntax in rule collection loop.
+ <http://webkit.org/b/119617>
+ <rdar://problem/14695311>
+
+ Reviewed by Antti Koivisto.
+
+ * css/ElementRuleCollector.cpp:
+ (WebCore::ElementRuleCollector::doCollectMatchingRulesForList):
+
+2013-08-09 Andreas Kling <[email protected]>
+
StyleRule*::properties() should return const references.
<http://webkit.org/b/119596>
Modified: trunk/Source/WebCore/css/ElementRuleCollector.cpp (153880 => 153881)
--- trunk/Source/WebCore/css/ElementRuleCollector.cpp 2013-08-09 09:58:52 UTC (rev 153880)
+++ trunk/Source/WebCore/css/ElementRuleCollector.cpp 2013-08-09 10:15:09 UTC (rev 153881)
@@ -400,9 +400,7 @@
const StyleResolver::State& state = m_state;
- unsigned size = rules->size();
- for (unsigned i = 0; i < size; ++i) {
- const RuleData& ruleData = rules->at(i);
+ for (const RuleData& ruleData : *rules) {
if (m_canUseFastReject && m_selectorFilter.fastRejectSelector<RuleData::maximumIdentifierCount>(ruleData.descendantSelectorIdentifierHashes()))
continue;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes