mirror of
https://github.com/servo/servo.git
synced 2025-07-15 19:33:46 +01:00
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:
parent
51367c22a6
commit
e64bc6d282
2 changed files with 26 additions and 27 deletions
|
@ -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);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue