Bug 1112480 part 9 - Remove call to PostUpdate from AnimationPlayer::ResumeAt; r=jwatt
authorBrian Birtles <birtles@gmail.com>
Fri, 09 Jan 2015 07:57:58 +0900
changeset 222850 2081656d2497d4803e35d5962e34b2642a42e999
parent 222849 632d54874ed20d94da6db401e3459f7b1998fd10
child 222851 95267af607c398fb56878d43f07c7c150dac82d7
push id10731
push usercbook@mozilla.com
push dateFri, 09 Jan 2015 14:51:37 +0000
treeherderfx-team@e6756043d930 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt
bugs1112480
milestone37.0a1
Bug 1112480 part 9 - Remove call to PostUpdate from AnimationPlayer::ResumeAt; r=jwatt Since pending animations are no longer started outside of a style update, we no longer need to call PostUpdate from ResumeAt.
dom/animation/AnimationPlayer.cpp
--- a/dom/animation/AnimationPlayer.cpp
+++ b/dom/animation/AnimationPlayer.cpp
@@ -319,17 +319,16 @@ AnimationPlayer::ResumeAt(const TimeDura
   MOZ_ASSERT(!mHoldTime.IsNull(),
              "A player in the pending state should have a resolved hold time");
 
   mStartTime.SetValue(aResumeTime - mHoldTime.Value());
   mHoldTime.SetNull();
   mIsPending = false;
 
   UpdateSourceContent();
-  PostUpdate();
 
   if (mReady) {
     mReady->MaybeResolve(this);
   }
 }
 
 void
 AnimationPlayer::UpdateSourceContent()