Bug 1291061 - Pass const StyleAnimationValue& to CreateStyleContextForAnimationValue r?birtles
MozReview-Commit-ID: 6PJzBBWSgwQ
--- 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);