Bug 249498

Summary: [web-animations] add an AnimatableProperty type to encapsulate either a standard or custom property
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, graouts, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=249530
Bug Depends on:    
Bug Blocks: 249399, 249533    

Description Antoine Quint 2022-12-16 14:13:12 PST
The animation code is currently heavily biased towards dealing with "standard" CSS properties, represented by the CSSPropertyID type. However, with the work to add interpolation support for custom properties (see bug 249293) and to support CSS Transitions for custom properties (see bug 249399), we really need to deal with both custom properties and standard properties everywhere we currently deal with only standard properties. So let's add a new type, AnimatableProperty, which is an std::variant<CSSPropertyID, AtomString>.
Comment 1 Antoine Quint 2022-12-16 14:20:18 PST
Pull request: https://github.com/WebKit/WebKit/pull/7780
Comment 2 EWS 2022-12-17 03:13:17 PST
Committed 258040@main (ea7b3989b369): <https://commits.webkit.org/258040@main>

Reviewed commits have been landed. Closing PR #7780 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-12-17 03:14:14 PST
<rdar://problem/103477720>