Index: ui/compositor/layer_animation_element.cc |
diff --git a/ui/compositor/layer_animation_element.cc b/ui/compositor/layer_animation_element.cc |
index 81aeca59504d2974067431dcd840bd61bcb0e0b2..79f4a7f0d49a7f2dc091931760be3de4c4f7276b 100644 |
--- a/ui/compositor/layer_animation_element.cc |
+++ b/ui/compositor/layer_animation_element.cc |
@@ -444,8 +444,10 @@ class ThreadedOpacityTransition : public ThreadedLayerAnimationElement { |
virtual void OnAbort(LayerAnimationDelegate* delegate) OVERRIDE { |
if (delegate && Started()) { |
ThreadedLayerAnimationElement::OnAbort(delegate); |
- delegate->SetOpacityFromAnimation( |
- Tween::ValueBetween(last_progressed_fraction(), start_, target_)); |
+ delegate->SetOpacityFromAnimation(Tween::ValueBetween( |
+ Tween::CalculateValue(tween_type(), last_progressed_fraction()), |
+ start_, |
+ target_)); |
} |
} |