Bug 1259898: use range-based for loop in AnimValuesStyleRule.h
MozReview-Commit-ID: HlJ291yiVEp
--- 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;