From 6f4f668531ca9336d36a0343e9a99a82e25a7e41 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Tue, 24 Mar 2015 09:21:08 +0900 Subject: [PATCH] Bug 1109390 part 3 - Clear the start time when playing a player; r=jwatt This brings us into line with the algorithm in: https://w3c.github.io/web-animations/#play-an-animation which makes the other patches in this series easier to compare with the specification. --- dom/animation/AnimationPlayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/animation/AnimationPlayer.cpp b/dom/animation/AnimationPlayer.cpp index 33b0f64c4ef..9fc5cbfc35e 100644 --- a/dom/animation/AnimationPlayer.cpp +++ b/dom/animation/AnimationPlayer.cpp @@ -442,6 +442,9 @@ AnimationPlayer::DoPlay() // Clear ready promise. We'll create a new one lazily. mReady = nullptr; + // Clear the start time until we resolve a new one + mStartTime.SetNull(); + mIsPending = true; nsIDocument* doc = GetRenderedDocument();