summaryrefslogtreecommitdiff
path: root/Source/WebCore/page/WebKitAnimation.cpp
diff options
context:
space:
mode:
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