Bug 1291061 - Pass const StyleAnimationValue& to CreateStyleContextForAnimationValue r?birtles draft
authortakashi kawanaka <ktakashi19980515@gmail.com>
Sat, 27 Aug 2016 15:27:38 +0900
changeset 406388 c7c1c419b21eea3201169600aa59a5c1c0b98d77
parent 406178 a65b35c8e5b17c2585968974aef1da67a8c56642
child 529645 0c83a6f0223ce199c9e304191d04dbedb4be5874
push id27713
push userbmo:ktakashi19980515@gmail.com
push dateSat, 27 Aug 2016 06:38:23 +0000
reviewersbirtles
bugs1291061
milestone51.0a1
Bug 1291061 - Pass const StyleAnimationValue& to CreateStyleContextForAnimationValue r?birtles MozReview-Commit-ID: 6PJzBBWSgwQ
dom/animation/KeyframeEffect.cpp
--- a/dom/animation/KeyframeEffect.cpp
+++ b/dom/animation/KeyframeEffect.cpp
@@ -1158,17 +1158,17 @@ KeyframeEffectReadOnly::SetPerformanceWa
       }
       return;
     }
   }
 }
 
 static already_AddRefed<nsStyleContext>
 CreateStyleContextForAnimationValue(nsCSSPropertyID aProperty,
-                                    StyleAnimationValue aValue,
+                                    const StyleAnimationValue& aValue,
                                     nsStyleContext* aBaseStyleContext)
 {
   MOZ_ASSERT(aBaseStyleContext,
              "CreateStyleContextForAnimationValue needs to be called "
              "with a valid nsStyleContext");
 
   RefPtr<AnimValuesStyleRule> styleRule = new AnimValuesStyleRule();
   styleRule->AddValue(aProperty, aValue);