Closed Bug 1826603 Opened 3 years ago Closed 3 years ago

Don't dispatch transition events if there are no listeners

Categories

(Core :: CSS Transitions and Animations, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

Dispatching the events shows up a bit in the speedometer3.
Unfortunately we do need to create the events though, since they are queued and dispatched asynchronously and one can't know when a listener will be added.

We have still one spare bit in EventListenerManager, so we can optimize all the transition events as one group, but the setup will probably need to change, since there are also other events which could be optimized out. But for this, I'm planning to use still the old setup.

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03675507093b Don't dispatch transition events if there are no listeners, r=masayuki
Whiteboard: [sp3]
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: