summaryrefslogtreecommitdiff
path: root/Source/WebCore/page/WebKitAnimation.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-09 14:16:12 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-09 14:16:12 +0100
commit03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (patch)
tree52599cd0ab782b1768e23ad176f7618f98333cb6 /Source/WebCore/page/WebKitAnimation.cpp
parentcd44dc59cdfc39534aef4d417e9f3c412e3be139 (diff)
downloadqtwebkit-03e12282df9aa1e1fb05a8b90f1cfc2e08764cec.tar.gz
Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223)
Diffstat (limited to 'Source/WebCore/page/WebKitAnimation.cpp')
-rw-r--r--Source/WebCore/page/WebKitAnimation.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/WebCore/page/WebKitAnimation.cpp b/Source/WebCore/page/WebKitAnimation.cpp
index b757d2317..98e77367c 100644
--- a/Source/WebCore/page/WebKitAnimation.cpp
+++ b/Source/WebCore/page/WebKitAnimation.cpp
@@ -84,9 +84,18 @@ bool WebKitAnimation::ended() const
WebKitAnimation::Direction WebKitAnimation::direction() const
{
- if (m_keyframeAnimation->animation()->direction() == Animation::AnimationDirectionNormal)
+ switch (m_keyframeAnimation->animation()->direction()) {
+ case Animation::AnimationDirectionNormal:
return DIRECTION_NORMAL;
- return DIRECTION_ALTERNATE;
+ case Animation::AnimationDirectionAlternate:
+ return DIRECTION_ALTERNATE;
+ case Animation::AnimationDirectionReverse:
+ return DIRECTION_REVERSE;
+ case Animation::AnimationDirectionAlternateReverse:
+ return DIRECTION_ALTERNATE_REVERSE;
+ }
+ ASSERT_NOT_REACHED();
+ return DIRECTION_NORMAL;
}
WebKitAnimation::FillMode WebKitAnimation::fillMode() const