Home | History | Annotate | Download | only in css

Lines Matching refs:AnimationNode

603 void CSSAnimations::AnimationEventDelegate::onEventCondition(const AnimationNode* animationNode)
605 const AnimationNode::Phase currentPhase = animationNode->phase();
606 const double currentIteration = animationNode->currentIteration();
609 && (currentPhase == AnimationNode::PhaseActive || currentPhase == AnimationNode::PhaseAfter)
610 && (m_previousPhase == AnimationNode::PhaseNone || m_previousPhase == AnimationNode::PhaseBefore)) {
617 if (currentPhase == AnimationNode::PhaseActive && m_previousPhase == currentPhase && m_previousIteration != currentIteration) {
622 ASSERT(!std::isnan(animationNode->specifiedTiming().iterationDuration));
623 const double elapsedTime = animationNode->specifiedTiming().iterationDuration * (m_previousIteration + 1);
627 if (currentPhase == AnimationNode::PhaseAfter && m_previousPhase != AnimationNode::PhaseAfter)
628 maybeDispatch(Document::ANIMATIONEND_LISTENER, EventTypeNames::animationend, animationNode->activeDurationInternal());
637 AnimationNode::EventDelegate::trace(visitor);
640 void CSSAnimations::TransitionEventDelegate::onEventCondition(const AnimationNode* animationNode)
642 const AnimationNode::Phase currentPhase = animationNode->phase();
643 if (currentPhase == AnimationNode::PhaseAfter && currentPhase != m_previousPhase && m_target->document().hasListenerType(Document::TRANSITIONEND_LISTENER)) {
645 const Timing& timing = animationNode->specifiedTiming();
660 AnimationNode::EventDelegate::trace(visitor);