Index: Source/core/page/animation/AnimationBase.cpp |
diff --git a/Source/core/page/animation/AnimationBase.cpp b/Source/core/page/animation/AnimationBase.cpp |
index d5156e306ce6bbab4c3d22a5a715158449879bfc..3d71dd78dcc333b685c710c46e530b09845422c2 100644 |
--- a/Source/core/page/animation/AnimationBase.cpp |
+++ b/Source/core/page/animation/AnimationBase.cpp |
@@ -68,7 +68,7 @@ static inline double solveStepsFunction(int numSteps, bool stepAtStart, double t |
return floor(numSteps * t) / numSteps; |
} |
-AnimationBase::AnimationBase(const Animation* transition, RenderObject* renderer, CompositeAnimation* compAnim) |
+AnimationBase::AnimationBase(const PrimitiveAnimation* transition, RenderObject* renderer, CompositeAnimation* compAnim) |
: m_animState(AnimationStateNew) |
, m_isAccelerated(false) |
, m_transformFunctionListValid(false) |
@@ -79,7 +79,7 @@ AnimationBase::AnimationBase(const Animation* transition, RenderObject* renderer |
, m_totalDuration(-1) |
, m_nextIterationDuration(-1) |
, m_object(renderer) |
- , m_animation(const_cast<Animation*>(transition)) |
+ , m_animation(const_cast<PrimitiveAnimation*>(transition)) |
, m_compAnim(compAnim) |
{ |
// Compute the total duration |
@@ -104,7 +104,7 @@ bool AnimationBase::playStatePlaying() const |
return m_animation->playState() == AnimPlayStatePlaying; |
} |
-bool AnimationBase::animationsMatch(const Animation* anim) const |
+bool AnimationBase::animationsMatch(const PrimitiveAnimation* anim) const |
{ |
return m_animation->animationsMatch(anim); |
} |
@@ -491,14 +491,14 @@ double AnimationBase::fractionalTime(double scale, double elapsedTime, double of |
int integralTime = static_cast<int>(fractionalTime); |
const int integralIterationCount = static_cast<int>(m_animation->iterationCount()); |
const bool iterationCountHasFractional = m_animation->iterationCount() - integralIterationCount; |
- if (m_animation->iterationCount() != Animation::IterationCountInfinite && !iterationCountHasFractional) |
+ if (m_animation->iterationCount() != PrimitiveAnimation::IterationCountInfinite && !iterationCountHasFractional) |
integralTime = min(integralTime, integralIterationCount - 1); |
fractionalTime -= integralTime; |
- if (((m_animation->direction() == Animation::AnimationDirectionAlternate) && (integralTime & 1)) |
- || ((m_animation->direction() == Animation::AnimationDirectionAlternateReverse) && !(integralTime & 1)) |
- || m_animation->direction() == Animation::AnimationDirectionReverse) |
+ if (((m_animation->direction() == PrimitiveAnimation::AnimationDirectionAlternate) && (integralTime & 1)) |
+ || ((m_animation->direction() == PrimitiveAnimation::AnimationDirectionAlternateReverse) && !(integralTime & 1)) |
+ || m_animation->direction() == PrimitiveAnimation::AnimationDirectionReverse) |
fractionalTime = 1 - fractionalTime; |
if (scale != 1 || offset) |