KeyframeAnimation::KeyframeAnimation(const Animation* animation, RenderObject* renderer, int index, CompositeAnimation* compAnim, RenderStyle* unanimatedStyle) : AnimationBase(animation, renderer, compAnim) , m_keyframes(renderer, animation->name()) , m_index(index) , m_unanimatedStyle(unanimatedStyle) { // Get the keyframe RenderStyles if (m_object && m_object->node() && m_object->node()->isElementNode()) m_object->document()->styleSelector()->keyframeStylesForAnimation(static_cast<Element*>(m_object->node()), unanimatedStyle, m_keyframes); // Update the m_transformFunctionListValid flag based on whether the function lists in the keyframes match. validateTransformFunctionList(); }
KeyframeAnimation::KeyframeAnimation(Animation& animation, RenderElement* renderer, int index, CompositeAnimation* compositeAnimation, RenderStyle* unanimatedStyle) : AnimationBase(animation, renderer, compositeAnimation) , m_keyframes(animation.name()) , m_unanimatedStyle(unanimatedStyle) , m_index(index) { // Get the keyframe RenderStyles if (m_object && m_object->element()) m_object->document().ensureStyleResolver().keyframeStylesForAnimation(m_object->element(), unanimatedStyle, m_keyframes); // Update the m_transformFunctionListValid flag based on whether the function lists in the keyframes match. validateTransformFunctionList(); checkForMatchingFilterFunctionLists(); }
void ImplicitAnimation::reset(RenderStyle* to) { ASSERT(to); ASSERT(m_fromStyle); m_toStyle = to; // Restart the transition if (m_fromStyle && m_toStyle) updateStateMachine(AnimationStateInputRestartAnimation, -1); // set the transform animation list validateTransformFunctionList(); }
void ImplicitAnimation::reset(RenderStyle* to) { ASSERT(to); ASSERT(m_fromStyle); m_toStyle = to; // Restart the transition if (m_fromStyle && m_toStyle) updateStateMachine(AnimationStateInputRestartAnimation, -1); // set the transform animation list validateTransformFunctionList(); #if ENABLE(CSS_FILTERS) checkForMatchingFilterFunctionLists(); #endif }
KeyframeAnimation::KeyframeAnimation(const Animation* animation, RenderObject* renderer, int index, CompositeAnimation* compAnim, RenderStyle* unanimatedStyle) : AnimationBase(animation, renderer, compAnim) , m_keyframes(renderer, animation->name()) , m_index(index) , m_startEventDispatched(false) , m_unanimatedStyle(unanimatedStyle) { // Get the keyframe RenderStyles if (m_object && m_object->styledGeneratingNode() && m_object->styledGeneratingNode()->isElementNode()) m_object->document()->styleResolver()->keyframeStylesForAnimation(static_cast<Element*>(m_object->styledGeneratingNode()), unanimatedStyle, m_keyframes); // Update the m_transformFunctionListValid flag based on whether the function lists in the keyframes match. validateTransformFunctionList(); #if ENABLE(CSS_FILTERS) checkForMatchingFilterFunctionLists(); #endif }