Bug 245658

Summary: Provide dedicated functions for computation of from and to values for composite animations
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, graouts, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Antoine Quint 2022-09-26 00:42:13 PDT
Sam Weinig made a good point in https://github.com/WebKit/WebKit/pull/4674#issuecomment-1257318558:

> As a side note, so not needed for this PR, unless there is some great reason I don't quite understand to
> keep it the way it is, I think we should consider modeling these different compositing operations in a way
> that is easier to understand.
> I think the obvious way to do this would be to stop using the blend() functions for computing the used
> from/to for additive/accumulative animations, and instead add a new entry point. Obviously this would
> add a bit of extra boilerplate, but I think the clarity would be good in the end.

I also agree with this, especially since we call blend() with progress = 1 at all times.
Comment 1 Radar WebKit Bug Importer 2022-10-03 00:43:16 PDT
<rdar://problem/100706662>