summaryrefslogtreecommitdiffstats
path: root/ui/compositor/layer_animation_element.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/compositor/layer_animation_element.cc')
-rw-r--r--ui/compositor/layer_animation_element.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/compositor/layer_animation_element.cc b/ui/compositor/layer_animation_element.cc
index 1234a04..f70c108 100644
--- a/ui/compositor/layer_animation_element.cc
+++ b/ui/compositor/layer_animation_element.cc
@@ -517,7 +517,7 @@ class ThreadedTransformTransition : public ThreadedLayerAnimationElement {
}
virtual void OnAbort(LayerAnimationDelegate* delegate) OVERRIDE {
- if (delegate && animation_id()) {
+ if (delegate && Started()) {
ThreadedLayerAnimationElement::OnAbort(delegate);
delegate->SetTransformFromAnimation(Tween::ValueBetween(
Tween::CalculateValue(tween_type(), last_progressed_fraction()),