PassOwnPtr<CSSAnimationUpdate> CSSAnimations::calculateUpdate(Element* element, const Element& parentElement, const RenderStyle& style, RenderStyle* parentStyle) { OwnPtr<CSSAnimationUpdate> update = adoptPtr(new CSSAnimationUpdate()); calculateAnimationActiveInterpolations(update.get(), element, parentElement.document().timeline().currentTimeInternal()); calculateTransitionUpdate(update.get(), element, style); calculateTransitionActiveInterpolations(update.get(), element, parentElement.document().timeline().currentTimeInternal()); return update->isEmpty() ? nullptr : update.release(); }
PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> CSSAnimations::calculateUpdate(const Element* animatingElement, Element& element, const RenderStyle& style, RenderStyle* parentStyle, StyleResolver* resolver) { OwnPtrWillBeRawPtr<CSSAnimationUpdate> update = adoptPtrWillBeNoop(new CSSAnimationUpdate()); calculateAnimationUpdate(update.get(), animatingElement, element, style, parentStyle, resolver); calculateAnimationActiveInterpolations(update.get(), animatingElement, element.document().timeline().currentTimeInternal()); calculateTransitionUpdate(update.get(), animatingElement, style); calculateTransitionActiveInterpolations(update.get(), animatingElement, element.document().timeline().currentTimeInternal()); return update->isEmpty() ? nullptr : update.release(); }