mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Move the dispatch_events_for_animation_if_necessary() calls into step 1 of update_animations_and_send_events(), where the spec note says updating timelines involves "Queueing animation events for any such animations." Previously, these calls ran after step 7 (event dispatch), causing newly queued events to be deferred by an extra rendering update. This meant that e.g. a CSS transition triggered during an earlier rendering step would not have its transitionrun event fired until the next frame, instead of the current one.