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 290511 310e9b700300d8b62e3b16e91e978e26cead239c
parent 290510 feb85260ffb750c7e0a3096e1ffd7134249d4e67
child 290512 603181ac9e84f9a4a8dd6471e880860088f1d813
push id30123
push userkwierso@gmail.com
push dateMon, 28 Mar 2016 20:04:22 +0000
treeherdermozilla-central@a66bf0a800f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1259898
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;