Closed Bug 1773493 Opened 3 years ago Closed 3 years ago

Eliminate IPDL-specific Class for Passing ComputedTimingFunction Around

Categories

(Core :: CSS Transitions and Animations, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: dshin, Assigned: dshin)

References

Details

Attachments

(1 file)

In Rust, we use a generic linear easing function struct for specified & computed values. However, with bug 1764126 implementing linear(...), easing functions no longer have 1:1 mapping between specified (i.e. form that accommodates for parsing and printing) & computed (i.e. form that can be queried for output) values. This causes conversions back and forth between the computed & specified values.
May need a separate implementation to avoid this.

Depends on: 1764126
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Severity: -- → S3
Summary: Separate Implementations of Linear Easing Function for Specified/Computed Values → Reduce Number of Periphery Classes for Passing ComputedTimingFunction Around

While what is said in comment #0 is true, we should avoid stuffing this non-1:1 mapping into specified/computed value, which have very specific definitions by the standard. Perhaps a wrapper object containing additional data for linear function can be defined as Rust/C++ timing function computations get merged in bug 1766041.

This ticket tracks another angle to reduce complexity of passing computed timing functions around by eliminating the IPDL definition of it and using Rust's definitions.

Summary: Reduce Number of Periphery Classes for Passing ComputedTimingFunction Around → Eliminate IPDL-specific Class for Passing ComputedTimingFunction Around
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b21ee5c328c Use Rust's `ComputedTimingFunction` for IPDL. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: