Changeset 222557 in webkit


Ignore:
Timestamp:
Sep 27, 2017 10:08:58 AM (7 years ago)
Author:
Antti Koivisto
Message:

Ref element keys in CSSAnimationControllerPrivate
https://bugs.webkit.org/show_bug.cgi?id=177543

Reviewed by Zalan Bujtas.

For safety.

  • page/animation/CSSAnimationControllerPrivate.h:

This won't create ref cycle as elements are removed from the m_compositeAnimations maps when they
are removed from the tree. We have assertions that verify the map is always cleared.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r222556 r222557  
     12017-09-27  Antti Koivisto  <antti@apple.com>
     2
     3        Ref element keys in CSSAnimationControllerPrivate
     4        https://bugs.webkit.org/show_bug.cgi?id=177543
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        For safety.
     9
     10        * page/animation/CSSAnimationControllerPrivate.h:
     11
     12        This won't create ref cycle as elements are removed from the m_compositeAnimations maps when they
     13        are removed from the tree. We have assertions that verify the map is always cleared.
     14
    1152017-09-27  David Hyatt  <hyatt@apple.com>
    216
  • trunk/Source/WebCore/page/animation/CSSAnimationControllerPrivate.h

    r221980 r222557  
    125125    void startTimeResponse(double t);
    126126
    127     HashMap<Element*, RefPtr<CompositeAnimation>> m_compositeAnimations;
     127    HashMap<RefPtr<Element>, RefPtr<CompositeAnimation>> m_compositeAnimations;
    128128    Timer m_animationTimer;
    129129    Timer m_updateStyleIfNeededDispatcher;
Note: See TracChangeset for help on using the changeset viewer.