WebCore:
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Nov 2008 22:05:27 +0000 (22:05 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Nov 2008 22:05:27 +0000 (22:05 +0000)
commit65c3f4be94c86c046a9357ba11652bab7f686998
tree0c66d39ce9dbe8065d975be2d4b2ea36236a2709
parentfb48f8b9782f593f8710d51523c2947559a20b37
WebCore:
2008-11-17  Pierre-Olivier Latour  <pol@apple.com>

        Reviewed by Sam Weinig.

        Added functionality to AnimationController to allow pausing a running
        animation or transition at a given time for testing purposes.

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

        Tests: animations/animation-drt-api.html
               transitions/transition-drt-api.html

        * WebCore.base.exp:
        * WebCore.xcodeproj/project.pbxproj:
        * page/animation/AnimationBase.cpp:
        (WebCore::AnimationBase::updateStateMachine):
        (WebCore::AnimationBase::progress):
        (WebCore::AnimationBase::pauseAtTime):
        * page/animation/AnimationBase.h:
        * page/animation/AnimationController.cpp:
        (WebCore::AnimationControllerPrivate::pauseAnimationAtTime):
        (WebCore::AnimationControllerPrivate::pauseTransitionAtTime):
        (WebCore::AnimationController::pauseAnimationAtTime):
        (WebCore::AnimationController::pauseTransitionAtTime):
        * page/animation/AnimationController.h:
        * page/animation/CompositeAnimation.cpp:
        (WebCore::CompositeAnimationPrivate::isAnimating):
        (WebCore::CompositeAnimationPrivate::pauseAnimationAtTime):
        (WebCore::CompositeAnimationPrivate::pauseTransitionAtTime):
        (WebCore::CompositeAnimation::pauseAnimationAtTime):
        (WebCore::CompositeAnimation::pauseTransitionAtTime):
        * page/animation/CompositeAnimation.h:
        * page/animation/ImplicitAnimation.cpp:
        (WebCore::ImplicitAnimation::animate):

WebKit/mac:
2008-11-17  Pierre-Olivier Latour  <pol@apple.com>

        Reviewed by Sam Weinig.

        Added SPI to allow pausing a running CSS transition or animation
        at a given time for testing purposes.

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

        * WebView/WebFrame.mm:
        (-[WebFrame _pauseAnimation:onNode:atTime:]):
        (-[WebFrame _pauseTransitionOfProperty:onNode:atTime:]):
        * WebView/WebFramePrivate.h:

WebKitTools:
2008-11-17  Pierre-Olivier Latour  <pol@apple.com>

        Reviewed by Sam Weinig.

        Added new JavaScript API on LayoutController to pause a running
        CSS transition or animation at a given time.

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

        * DumpRenderTree/LayoutTestController.cpp:
        (pauseAnimationAtTimeOnElementWithIdCallback):
        (pauseTransitionAtTimeOnElementWithIdCallback):
        (LayoutTestController::staticFunctions):
        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::pauseAnimationAtTimeOnElementWithId):
        (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::pauseAnimationAtTimeOnElementWithId):
        (LayoutTestController::pauseTransitionAtTimeOnElementWithId):

LayoutTests:
2008-11-17  Pierre-Olivier Latour  <pol@apple.com>

        Reviewed by Sam Weinig.

        Added tests to cover the new LayoutController JavaScript API available
        in DRT (Mac only).

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

        * animations/animation-drt-api.html: Added.
        * platform/mac/animations/animation-drt-api-expected.txt: Added.
        * platform/mac/transitions/transition-drt-api-expected.txt: Added.
        * platform/win/Skipped:
        * transitions/transition-drt-api.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@38526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
LayoutTests/ChangeLog
LayoutTests/animations/animation-drt-api.html [new file with mode: 0644]
LayoutTests/platform/mac/animations/animation-drt-api-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/transitions/transition-drt-api-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/Skipped
LayoutTests/transitions/transition-drt-api.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/WebCore.base.exp
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/page/animation/AnimationBase.cpp
WebCore/page/animation/AnimationBase.h
WebCore/page/animation/AnimationController.cpp
WebCore/page/animation/AnimationController.h
WebCore/page/animation/CompositeAnimation.cpp
WebCore/page/animation/CompositeAnimation.h
WebCore/page/animation/ImplicitAnimation.cpp
WebKit/mac/ChangeLog
WebKit/mac/WebView/WebFrame.mm
WebKit/mac/WebView/WebFramePrivate.h
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/LayoutTestController.cpp
WebKitTools/DumpRenderTree/LayoutTestController.h
WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm
WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp