Bug 1259898: use range-based for loop in AnimValuesStyleRule.h r=birtles
authorRob McAuley <rmcauley@gmail.com>
Sat, 26 Mar 2016 16:50:05 +0900
changeset 290570 310e9b700300d8b62e3b16e91e978e26cead239c
parent 290569 feb85260ffb750c7e0a3096e1ffd7134249d4e67
child 290571 603181ac9e84f9a4a8dd6471e880860088f1d813
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1259898
milestone48.0a1
Bug 1259898: use range-based for loop in AnimValuesStyleRule.h r=birtles MozReview-Commit-ID: HlJ291yiVEp
dom/animation/AnimValuesStyleRule.h
--- a/dom/animation/AnimValuesStyleRule.h
+++ b/dom/animation/AnimValuesStyleRule.h
@@ -56,18 +56,17 @@ public:
 
   struct PropertyValuePair {
     nsCSSProperty mProperty;
     StyleAnimationValue mValue;
   };
 
   void AddPropertiesToSet(nsCSSPropertySet& aSet) const
   {
-    for (size_t i = 0, i_end = mPropertyValuePairs.Length(); i < i_end; ++i) {
-      const PropertyValuePair &cv = mPropertyValuePairs[i];
+    for (const PropertyValuePair& cv : mPropertyValuePairs) {
       aSet.AddProperty(cv.mProperty);
     }
   }
 
 private:
   ~AnimValuesStyleRule() {}
 
   InfallibleTArray<PropertyValuePair> mPropertyValuePairs;