Changeset 258916 in webkit


Ignore:
Timestamp:
Mar 24, 2020 10:20:33 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[Web Animations] Clean timeline headers up
https://bugs.webkit.org/show_bug.cgi?id=209482

Patch by Antoine Quint <Antoine Quint> on 2020-03-24
Reviewed by Antti Koivisto.

The AnimationTimeline::removeAnimationsForElement() method isn't used and DocumentTimeline::applyPendingAcceleratedAnimations()
is only used internally in DocumentTimeline so it can be made private.

  • animation/AnimationTimeline.cpp:

(WebCore::AnimationTimeline::removeAnimationsForElement): Deleted.

  • animation/AnimationTimeline.h:
  • animation/DocumentTimeline.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r258913 r258916  
     12020-03-24  Antoine Quint  <graouts@apple.com>
     2
     3        [Web Animations] Clean timeline headers up
     4        https://bugs.webkit.org/show_bug.cgi?id=209482
     5
     6        Reviewed by Antti Koivisto.
     7
     8        The AnimationTimeline::removeAnimationsForElement() method isn't used and DocumentTimeline::applyPendingAcceleratedAnimations()
     9        is only used internally in DocumentTimeline so it can be made private.
     10
     11        * animation/AnimationTimeline.cpp:
     12        (WebCore::AnimationTimeline::removeAnimationsForElement): Deleted.
     13        * animation/AnimationTimeline.h:
     14        * animation/DocumentTimeline.h:
     15
    1162020-03-24  Antoine Quint  <graouts@apple.com>
    217
  • trunk/Source/WebCore/animation/AnimationTimeline.cpp

    r258842 r258916  
    194194}
    195195
    196 void AnimationTimeline::removeAnimationsForElement(Element& element)
    197 {
    198     for (auto& animation : animationsForElement(element))
    199         animation->remove();
    200 }
    201 
    202196void AnimationTimeline::willChangeRendererForElement(Element& element)
    203197{
  • trunk/Source/WebCore/animation/AnimationTimeline.h

    r258842 r258916  
    6262
    6363    void elementWasRemoved(Element&);
    64     void removeAnimationsForElement(Element&);
    6564
    6665    void willChangeRendererForElement(Element&);
  • trunk/Source/WebCore/animation/DocumentTimeline.h

    r257417 r258916  
    6767    bool isRunningAcceleratedAnimationOnRenderer(RenderElement&, CSSPropertyID) const;
    6868    void animationAcceleratedRunningStateDidChange(WebAnimation&);
    69     void applyPendingAcceleratedAnimations();
    7069    bool runningAnimationsForElementAreAllAccelerated(Element&) const;
    7170    void detachFromDocument();
     
    9089
    9190    DOMHighResTimeStamp liveCurrentTime() const;
     91    void applyPendingAcceleratedAnimations();
    9292    void cacheCurrentTime(DOMHighResTimeStamp);
    9393    void maybeClearCachedCurrentTime();
Note: See TracChangeset for help on using the changeset viewer.