void ScriptedAnimationController::serviceScriptedAnimations(double monotonicTimeNow) { if (!hasScheduledItems()) return; RefPtrWillBeRawPtr<ScriptedAnimationController> protect(this); callMediaQueryListListeners(); dispatchEvents(); executeCallbacks(monotonicTimeNow); scheduleAnimationIfNeeded(); }
void ScriptedAnimationController::serviceScriptedAnimations(double monotonicTimeNow) { if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListeners.size()) return; if (m_suspendCount) return; RefPtrWillBeRawPtr<ScriptedAnimationController> protect(this); callMediaQueryListListeners(); dispatchEvents(); executeCallbacks(monotonicTimeNow); scheduleAnimationIfNeeded(); }
void ScriptedAnimationController::serviceScriptedAnimations(double monotonicTimeNow) { WTF_LOG(ScriptedAnimationController, "serviceScriptedAnimations: #callbacks = %d, #events = %d, #mediaQueryListListeners = %d, count = %d", static_cast<int>(m_callbacks.size()), static_cast<int>(m_eventQueue.size()), static_cast<int>(m_mediaQueryListListeners.size()), m_suspendCount); if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListeners.size()) return; if (m_suspendCount) return; RefPtr<ScriptedAnimationController> protect(this); callMediaQueryListListeners(); dispatchEvents(); executeCallbacks(monotonicTimeNow); scheduleAnimationIfNeeded(); }
void ScriptedAnimationController::dispatchEventsAndCallbacksForPrinting() { dispatchEvents(EventNames::MediaQueryListEvent); callMediaQueryListListeners(); }