summaryrefslogtreecommitdiffstats
path: root/cc/animation/layer_animation_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/animation/layer_animation_controller.cc')
-rw-r--r--cc/animation/layer_animation_controller.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/cc/animation/layer_animation_controller.cc b/cc/animation/layer_animation_controller.cc
index e6e720f..82f27ca 100644
--- a/cc/animation/layer_animation_controller.cc
+++ b/cc/animation/layer_animation_controller.cc
@@ -755,9 +755,14 @@ void LayerAnimationController::PromoteStartedAnimations(
!animations_[i]->needs_synchronized_start_time())
animations_[i]->set_start_time(monotonic_time);
if (events) {
+ base::TimeTicks start_time;
+ if (animations_[i]->has_set_start_time())
+ start_time = animations_[i]->start_time();
+ else
+ start_time = monotonic_time;
AnimationEvent started_event(
AnimationEvent::STARTED, id_, animations_[i]->group(),
- animations_[i]->target_property(), monotonic_time);
+ animations_[i]->target_property(), start_time);
started_event.is_impl_only = animations_[i]->is_impl_only();
if (started_event.is_impl_only)
NotifyAnimationStarted(started_event);