X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Fanimation%2FDocumentTimeline.cpp;h=687b9f2419f675eb81f246eb71e20d9482483a88;hp=e6d9a5d00454e12ab83e594e6924f65a28e7088e;hb=fff7424a5ab8b6ffb72b29181542d3fc65bee8d9;hpb=fa489cbe40e8f235a9ec0fafa1325f10097b9d19;ds=sidebyside diff --git a/Source/WebCore/animation/DocumentTimeline.cpp b/Source/WebCore/animation/DocumentTimeline.cpp index e6d9a5d..687b9f2 100644 --- a/Source/WebCore/animation/DocumentTimeline.cpp +++ b/Source/WebCore/animation/DocumentTimeline.cpp @@ -144,7 +144,7 @@ unsigned DocumentTimeline::numberOfActiveAnimationsForTesting() const std::optional DocumentTimeline::currentTime() { - if (m_paused || !m_document || !m_document->domWindow()) + if (!m_document || !m_document->domWindow()) return AnimationTimeline::currentTime(); if (auto* mainDocumentTimeline = m_document->existingTimeline()) { @@ -189,11 +189,6 @@ std::optional DocumentTimeline::currentTime() return m_cachedCurrentTime.value() - m_originTime; } -void DocumentTimeline::pause() -{ - m_paused = true; -} - void DocumentTimeline::timingModelDidChange() { if (m_needsUpdateAnimationSchedule || m_isSuspended)