void AnimationControllerPrivate::addNodeChangeToDispatch(PassRefPtr<Node> node) { if (!node) return; m_nodeChangesToDispatch.append(node); startUpdateStyleIfNeededDispatcher(); }
void AnimationControllerPrivate::addNodeChangeToDispatch(PassRefPtr<Node> node) { ASSERT(!node || (node->document() && !node->document()->inPageCache())); if (!node) return; m_nodeChangesToDispatch.append(node); startUpdateStyleIfNeededDispatcher(); }
void AnimationControllerPrivate::addEventToDispatch(PassRefPtr<Element> element, const AtomicString& eventType, const String& name, double elapsedTime) { m_eventsToDispatch.grow(m_eventsToDispatch.size()+1); EventToDispatch& event = m_eventsToDispatch[m_eventsToDispatch.size()-1]; event.element = element; event.eventType = eventType; event.name = name; event.elapsedTime = elapsedTime; startUpdateStyleIfNeededDispatcher(); }
bool AnimationControllerPrivate::pauseTransitionAtTime(RenderElement* renderer, const String& property, double t) { if (!renderer) return false; CompositeAnimation& compositeAnimation = ensureCompositeAnimation(renderer); if (compositeAnimation.pauseTransitionAtTime(cssPropertyID(property), t)) { renderer->element()->setNeedsStyleRecalc(SyntheticStyleChange); startUpdateStyleIfNeededDispatcher(); return true; } return false; }
bool AnimationControllerPrivate::pauseAnimationAtTime(RenderObject* renderer, const AtomicString& name, double t) { if (!renderer) return false; CompositeAnimation& compositeAnimation = ensureCompositeAnimation(renderer); if (compositeAnimation.pauseAnimationAtTime(name, t)) { renderer->node()->setNeedsStyleRecalc(SyntheticStyleChange); startUpdateStyleIfNeededDispatcher(); return true; } return false; }
bool AnimationControllerPrivate::pauseAnimationAtTime(RenderElement* renderer, const AtomicString& name, double t) { if (!renderer) return false; CompositeAnimation& compositeAnimation = ensureCompositeAnimation(*renderer); if (compositeAnimation.pauseAnimationAtTime(name, t)) { renderer->element()->invalidateStyleAndLayerComposition(); startUpdateStyleIfNeededDispatcher(); return true; } return false; }
bool AnimationControllerPrivate::pauseTransitionAtTime(RenderObject* renderer, const String& property, double t) { if (!renderer) return false; RefPtr<CompositeAnimation> compAnim = accessCompositeAnimation(renderer); if (!compAnim) return false; if (compAnim->pauseTransitionAtTime(cssPropertyID(property), t)) { renderer->node()->setNeedsStyleRecalc(SyntheticStyleChange); startUpdateStyleIfNeededDispatcher(); return true; } return false; }
void AnimationControllerPrivate::addElementChangeToDispatch(PassRef<Element> element) { m_elementChangesToDispatch.append(std::move(element)); ASSERT(!m_elementChangesToDispatch.last()->document().inPageCache()); startUpdateStyleIfNeededDispatcher(); }
void AnimationControllerPrivate::addElementChangeToDispatch(Ref<Element>&& element) { m_elementChangesToDispatch.append(WTFMove(element)); ASSERT(m_elementChangesToDispatch.last()->document().pageCacheState() == Document::NotInPageCache); startUpdateStyleIfNeededDispatcher(); }