Index: cc/animation/layer_animation_controller.cc |
diff --git a/cc/animation/layer_animation_controller.cc b/cc/animation/layer_animation_controller.cc |
index 0088c3dde8ed422451abc14a11f5059fa7df5a55..25941bbffc4016183979ca34a41213a9c06534ff 100644 |
--- a/cc/animation/layer_animation_controller.cc |
+++ b/cc/animation/layer_animation_controller.cc |
@@ -152,8 +152,9 @@ void LayerAnimationController::AccumulatePropertyUpdates( |
animation->group(), |
Animation::Opacity, |
monotonic_time); |
- event.opacity = animation->curve()->ToFloatAnimationCurve()->GetValue( |
- trimmed); |
+ const FloatAnimationCurve* float_animation_curve = |
+ animation->curve()->ToFloatAnimationCurve(); |
+ event.opacity = float_animation_curve->GetValue(trimmed); |
event.is_impl_only = true; |
events->push_back(event); |
break; |
@@ -165,8 +166,9 @@ void LayerAnimationController::AccumulatePropertyUpdates( |
animation->group(), |
Animation::Transform, |
monotonic_time); |
- event.transform = |
- animation->curve()->ToTransformAnimationCurve()->GetValue(trimmed); |
+ const TransformAnimationCurve* transform_animation_curve = |
+ animation->curve()->ToTransformAnimationCurve(); |
+ event.transform = transform_animation_curve->GetValue(trimmed); |
event.is_impl_only = true; |
events->push_back(event); |
break; |
@@ -178,8 +180,9 @@ void LayerAnimationController::AccumulatePropertyUpdates( |
animation->group(), |
Animation::Filter, |
monotonic_time); |
- event.filters = animation->curve()->ToFilterAnimationCurve()->GetValue( |
- trimmed); |
+ const FilterAnimationCurve* filter_animation_curve = |
+ animation->curve()->ToFilterAnimationCurve(); |
+ event.filters = filter_animation_curve->GetValue(trimmed); |
event.is_impl_only = true; |
events->push_back(event); |
break; |