Bug 211309

Summary: Avoid unnecessary copying in AnimationTimeline and other clean ups
Product: WebKit Reporter: Daniel Bates <dbates>
Component: AnimationsAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, graouts, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=202109
Attachments:
Description Flags
Patch none

Description Daniel Bates 2020-05-01 12:13:56 PDT
On random code inspection noticed that AnimationTimeline::relevantAnimations() and ::allAnimations() are copying into a new Vector. They don't need to.

Moreover, allAnimations() isn't being used, so I was tempted to remove, but maybe it will be used soon?
Comment 1 Daniel Bates 2020-05-01 12:21:05 PDT
Created attachment 398216 [details]
Patch
Comment 2 Daniel Bates 2020-05-01 15:17:03 PDT
Comment on attachment 398216 [details]
Patch

Clearing flags on attachment: 398216

Committed r261029: <https://trac.webkit.org/changeset/261029>
Comment 3 Daniel Bates 2020-05-01 15:17:07 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2020-05-01 15:18:17 PDT
<rdar://problem/62749337>