2010-11-02 Chris Marrin <cmarrin@apple.com>
authorcmarrin@apple.com <cmarrin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 Nov 2010 20:47:18 +0000 (20:47 +0000)
committercmarrin@apple.com <cmarrin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 Nov 2010 20:47:18 +0000 (20:47 +0000)
commit5ee55a2b7e2c4eb006c23b79c75423123fe85b17
tree0482caac024d7ef7c090a8a2bf8733e8804014c9
parentc4248e69571b8bf6572ef58cdacff7dddbf15bef
2010-11-02  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        When animations are paused, play-state can cause them to be unpaused.
        https://bugs.webkit.org/show_bug.cgi?id=46525

        I Changed updatePlayState() to only unpause when both play-state is
        "running" and not suspended. Likewise I pause animation when either
        play-state is "paused" or suspended.

        Test: animations/play-state-suspend.html

        * page/animation/AnimationBase.cpp:
        (WebCore::AnimationBase::updatePlayState):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/animations/play-state-suspend-expected.txt [new file with mode: 0644]
LayoutTests/animations/play-state-suspend.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/page/animation/AnimationBase.cpp