Load LayoutTests/animations/play-state.html, and just after the animation starts, pause animations. Note how the animations automatically resume when play-state changes.
<rdar://problem/8476959>
Created attachment 72698 [details] Patch
Comment on attachment 72698 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=72698&action=review > WebCore/ChangeLog:10 > + "running" and not suspended. Likewise pauses animation when either > + flag is in the right state, There's an incomplete sentence here. > WebCore/page/animation/AnimationBase.cpp:1214 > + bool wantToBePaused = playState == AnimPlayStatePaused || m_compAnim->suspended(); 'wantToBePaused' confuses me. "shouldBePaused", or just "pause" perhaps? > LayoutTests/animations/play-state-suspend.html:83 > + runAnimationTest(expectedValues, setTimers, null, true); Please annotate the parameters, or use variables to make the purposes of 'null' and 'true' clear.
Made changes suggested by Simon and landed in http://trac.webkit.org/changeset/71161