Bug 1291061 - Pass const StyleAnimationValue& to CreateStyleContextForAnimationValue r=birtles
authorTakashi Kawanaka <ktakashi19980515@gmail.com>
Sat, 27 Aug 2016 15:27:38 +0900
changeset 311516 88248d124b9a88885740b78114be1b11576b4dbc
parent 311515 9d3e8a9ce1101b0c4852433947de8d00e2330f71
child 311517 23ecdb879a8bc66c8c96f9650c7cb60e28399fa1
push id81145
push userbbirtles@mozilla.com
push dateSat, 27 Aug 2016 08:14:06 +0000
treeherdermozilla-inbound@88248d124b9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1291061
milestone51.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 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);