Bug 216654

Summary: Remove AnimationTimeline::animationsForElement() and the CSS Transitions and CSS Animations accessors on ElementAnimationRareData
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, cmarcelo, dino, esprehn+autocc, ews-watchlist, graouts, kangil.han, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Antoine Quint 2020-09-17 10:50:31 PDT
Remove AnimationTimeline::animationsForElement() and the CSS Transitions and CSS Animations accessors on ElementAnimationRareData
Comment 1 Antoine Quint 2020-09-17 10:53:34 PDT
Created attachment 409049 [details]
Patch
Comment 2 Simon Fraser (smfr) 2020-09-17 10:58:41 PDT
Comment on attachment 409049 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=409049&action=review

> Source/WebCore/animation/DocumentTimeline.cpp:338
> +    if (auto* animations = renderer.element()->animations()) {

Early return if renderer.element()->animations() is null?

> Source/WebCore/animation/DocumentTimeline.cpp:360
> +    if (auto* animations = renderer.element()->animations()) {

Early return if renderer.element()->animations() is null?

> Source/WebCore/animation/DocumentTimeline.cpp:379
> +    if (auto* animations = renderer.element()->animations()) {

Early return if renderer.element()->animations() is null?

> Source/WebCore/animation/DocumentTimeline.cpp:401
> +        if (auto* animations = renderer.element()->animations()) {

Early return if element or renderer.element()->animations() are null?
Comment 3 Antoine Quint 2020-09-17 11:12:00 PDT
(In reply to Simon Fraser (smfr) from comment #2)
> Comment on attachment 409049 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=409049&action=review
> 
> > Source/WebCore/animation/DocumentTimeline.cpp:338
> > +    if (auto* animations = renderer.element()->animations()) {
> 
> Early return if renderer.element()->animations() is null?
> 
> > Source/WebCore/animation/DocumentTimeline.cpp:360
> > +    if (auto* animations = renderer.element()->animations()) {
> 
> Early return if renderer.element()->animations() is null?
> 
> > Source/WebCore/animation/DocumentTimeline.cpp:379
> > +    if (auto* animations = renderer.element()->animations()) {
> 
> Early return if renderer.element()->animations() is null?
> 
> > Source/WebCore/animation/DocumentTimeline.cpp:401
> > +        if (auto* animations = renderer.element()->animations()) {
> 
> Early return if element or renderer.element()->animations() are null?

Yes, yes, yes and yes. Will fix in commit.
Comment 4 Antoine Quint 2020-09-17 11:55:28 PDT
Created attachment 409054 [details]
Patch for landing
Comment 5 EWS 2020-09-17 12:28:47 PDT
Committed r267204: <https://trac.webkit.org/changeset/267204>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 409054 [details].
Comment 6 Radar WebKit Bug Importer 2020-09-17 12:29:16 PDT
<rdar://problem/69088172>