script: join compositor_requested_update_the_rendering into should_trigger_script_thread_animation_tick (#37889)

This will help us make "update the rendering" a proper task.

Testing: Existing WPT tests.

try run: https://github.com/sagudev/servo/actions/runs/16085256131

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev 2025-07-08 17:26:32 +02:00 committed by GitHub
parent 51367c22a6
commit e64bc6d282
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 27 deletions

View file

@ -6751,7 +6751,10 @@ pub(crate) struct ImageAnimationUpdateCallback {
impl ImageAnimationUpdateCallback {
pub(crate) fn invoke(self, can_gc: CanGc) {
with_script_thread(|script_thread| script_thread.update_the_rendering(true, can_gc))
with_script_thread(|script_thread| {
script_thread.set_has_pending_animation_tick();
script_thread.update_the_rendering(can_gc);
})
}
}