Changeset 256696 in webkit


Ignore:
Timestamp:
Feb 14, 2020 7:02:55 PM (4 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r256636. rdar://problem/59478734

[Web Animations] Missing call to DocumentTimeline::resumeAnimations() in Frame::resumeActiveDOMObjectsAndAnimations()
https://bugs.webkit.org/show_bug.cgi?id=207784
<rdar://problem/59251858>

Patch by Antoine Quint <graouts@webkit.org> on 2020-02-14
Reviewed by Dean Jackson.

After auditing the code, there was one call to CSSAnimationController::resumeAnimationsForDocument() that missed a matching DocumentTimeline::resumeAnimations()
call should the Web Animations flag be on.

  • page/Frame.cpp: (WebCore::Frame::resumeActiveDOMObjectsAndAnimations):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256636 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-609-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-609-branch/Source/WebCore/ChangeLog

    r256694 r256696  
     12020-02-14  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r256636. rdar://problem/59478734
     4
     5    [Web Animations] Missing call to DocumentTimeline::resumeAnimations() in Frame::resumeActiveDOMObjectsAndAnimations()
     6    https://bugs.webkit.org/show_bug.cgi?id=207784
     7    <rdar://problem/59251858>
     8   
     9    Patch by Antoine Quint <graouts@webkit.org> on 2020-02-14
     10    Reviewed by Dean Jackson.
     11   
     12    After auditing the code, there was one call to CSSAnimationController::resumeAnimationsForDocument() that missed a matching DocumentTimeline::resumeAnimations()
     13    call should the Web Animations flag be on.
     14   
     15    * page/Frame.cpp:
     16    (WebCore::Frame::resumeActiveDOMObjectsAndAnimations):
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2020-02-14  Antoine Quint  <graouts@webkit.org>
     21
     22            [Web Animations] Missing call to DocumentTimeline::resumeAnimations() in Frame::resumeActiveDOMObjectsAndAnimations()
     23            https://bugs.webkit.org/show_bug.cgi?id=207784
     24            <rdar://problem/59251858>
     25
     26            Reviewed by Dean Jackson.
     27
     28            After auditing the code, there was one call to CSSAnimationController::resumeAnimationsForDocument() that missed a matching DocumentTimeline::resumeAnimations()
     29            call should the Web Animations flag be on.
     30
     31            * page/Frame.cpp:
     32            (WebCore::Frame::resumeActiveDOMObjectsAndAnimations):
     33
    1342020-02-14  Russell Epstein  <repstein@apple.com>
    235
  • branches/safari-609-branch/Source/WebCore/page/Frame.cpp

    r253634 r256696  
    963963
    964964    // Frame::clearTimers() suspended animations and pending relayouts.
    965     animation().resumeAnimationsForDocument(m_doc.get());
     965
     966    if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) {
     967        if (auto* timeline = m_doc->existingTimeline())
     968            timeline->resumeAnimations();
     969    } else
     970        animation().resumeAnimationsForDocument(m_doc.get());
    966971    if (m_view)
    967972        m_view->layoutContext().scheduleLayout();
Note: See TracChangeset for help on using the changeset viewer.