2009-01-08 Pierre-Olivier Latour <pol@apple.com>
authorpol@apple.com <pol@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jan 2009 18:24:47 +0000 (18:24 +0000)
committerpol@apple.com <pol@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jan 2009 18:24:47 +0000 (18:24 +0000)
commit4c53a88f7b49dfc2f027a0ed28a50ad39bed50d4
tree6881f2bb39ec80cccf727ac6b3ff8cbe4ee606a1
parent2431eb0b5cc8fa9460efb4983b921df6cce4e504
2009-01-08  Pierre-Olivier Latour  <pol@apple.com>

        Reviewed by Dan Bernstein.

        Fixed CSS Transitions with zero-duration but non-zero-delay not starting or ending properly.

        Also updated AnimationController::numberOfActiveAnimations() which now returns the number of "active" animations,
        instead of simply the "running" ones.

        https://bugs.webkit.org/show_bug.cgi?id=23177

        Tests: transitions/zero-duration-with-non-zero-delay-end.html
               transitions/zero-duration-with-non-zero-delay-start.html

        * page/animation/AnimationBase.cpp:
        (WebCore::AnimationBase::fireAnimationEventsIfNeeded):
        * page/animation/AnimationController.cpp:
        (WebCore::AnimationControllerPrivate::animationTimerFired):
        * page/animation/CompositeAnimation.cpp:
        (WebCore::CompositeAnimationPrivate::numberOfActiveAnimations):

        Added layout tests for CSS Transitions with zero-duration but non-zero-delay.

        Also updated the layout test for DRT API numberOfActiveAnimations() which now returns the number of "active" animations,
        instead of simply the running ones.

        https://bugs.webkit.org/show_bug.cgi?id=23177

        * animations/animation-controller-drt-api-expected.txt:
        * animations/animation-controller-drt-api.html:
        * platform/win/Skipped:
        * transitions/zero-duration-with-non-zero-delay-end-expected.txt: Added.
        * transitions/zero-duration-with-non-zero-delay-end.html: Added.
        * transitions/zero-duration-with-non-zero-delay-start-expected.txt: Added.
        * transitions/zero-duration-with-non-zero-delay-start.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/animations/animation-controller-drt-api-expected.txt
LayoutTests/animations/animation-controller-drt-api.html
LayoutTests/platform/win/Skipped
LayoutTests/transitions/zero-duration-with-non-zero-delay-end-expected.txt [new file with mode: 0644]
LayoutTests/transitions/zero-duration-with-non-zero-delay-end.html [new file with mode: 0644]
LayoutTests/transitions/zero-duration-with-non-zero-delay-start-expected.txt [new file with mode: 0644]
LayoutTests/transitions/zero-duration-with-non-zero-delay-start.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/page/animation/AnimationBase.cpp
WebCore/page/animation/AnimationController.cpp
WebCore/page/animation/CompositeAnimation.cpp