From 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 9 Feb 2012 14:16:12 +0100 Subject: Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223) --- Source/WebCore/page/WebKitAnimation.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Source/WebCore/page/WebKitAnimation.cpp') 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 -- cgit v1.2.1