From 9838a4dd51975b0a69fe42ccde86cf4f23499ab0 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Tue, 14 Apr 2015 09:07:41 +0900 Subject: [PATCH] Bug 1134381 - Don't pause an AnimationPlayer if it is already paused; r=jwatt --- dom/animation/AnimationPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/animation/AnimationPlayer.cpp b/dom/animation/AnimationPlayer.cpp index c3d9f2e45cf3..769ad296fd39 100644 --- a/dom/animation/AnimationPlayer.cpp +++ b/dom/animation/AnimationPlayer.cpp @@ -558,7 +558,7 @@ AnimationPlayer::DoPlay(LimitBehavior aLimitBehavior) void AnimationPlayer::DoPause() { - if (mPendingState == PendingState::PausePending) { + if (IsPausedOrPausing()) { return; }