Source/WebCore: Implement reverse animation direction
authorigor.o@sisa.samsung.com <igor.o@sisa.samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Feb 2012 02:07:11 +0000 (02:07 +0000)
committerigor.o@sisa.samsung.com <igor.o@sisa.samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Feb 2012 02:07:11 +0000 (02:07 +0000)
commitdb6a62c056ff4687506b99ef7bff7f6b6f7e5d8a
treec13b613fa81d783b647d54e35c7532eda8130519
parentd738dcf0f073aef85efebd9087e69473f9989016
Source/WebCore: Implement reverse animation direction

Implement reverse animation direction
https://bugs.webkit.org/show_bug.cgi?id=60525

Implement reverse and alternate-reverse direction.

Reviewed by Dean Jackson.

Tests: animations/animation-direction-alternate-reverse.html
       animations/animation-direction-reverse.html
       animations/fill-mode-reverse.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseAnimationDirection):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::mapAnimationDirection):
* css/CSSValueKeywords.in:
* page/WebKitAnimation.cpp:
(WebCore::WebKitAnimation::direction):
* page/WebKitAnimation.h:
* page/animation/AnimationBase.cpp:
(WebCore::AnimationBase::fractionalTime):
* platform/animation/Animation.h:
(Animation):
* platform/graphics/texmap/TextureMapperAnimation.cpp:
(WebCore):
(WebCore::shouldReverseAnimationValue):
(WebCore::normalizedAnimationValue):

LayoutTests: Implement reverse animation direction
https://bugs.webkit.org/show_bug.cgi?id=60525

Add test for the new animation-direction values.

Reviewed by Dean Jackson.

* animations/animation-direction-alternate-reverse-expected.txt: Added.
* animations/animation-direction-alternate-reverse.html: Added.
* animations/animation-direction-reverse-expected.txt: Added.
* animations/animation-direction-reverse.html: Added.
* animations/fill-mode-reverse-expected.txt: Added.
* animations/fill-mode-reverse.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
LayoutTests/ChangeLog
LayoutTests/animations/animation-direction-alternate-reverse-expected.txt [new file with mode: 0644]
LayoutTests/animations/animation-direction-alternate-reverse.html [new file with mode: 0644]
LayoutTests/animations/animation-direction-reverse-expected.txt [new file with mode: 0644]
LayoutTests/animations/animation-direction-reverse.html [new file with mode: 0644]
LayoutTests/animations/fill-mode-reverse-expected.txt [new file with mode: 0644]
LayoutTests/animations/fill-mode-reverse.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSStyleSelector.cpp
Source/WebCore/css/CSSValueKeywords.in
Source/WebCore/page/WebKitAnimation.cpp
Source/WebCore/page/WebKitAnimation.h
Source/WebCore/page/animation/AnimationBase.cpp
Source/WebCore/platform/animation/Animation.h
Source/WebCore/platform/graphics/texmap/TextureMapperAnimation.cpp