mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Only consider fully active documents when running the 'update the rendering' steps (#35245)
This is specified in https://html.spec.whatwg.org/multipage/#update-the-rendering step 3.2 but we where not filtering out inactive documents. Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
8999b539df
commit
c4f4d5cc04
2 changed files with 18 additions and 9 deletions
|
@ -2264,6 +2264,10 @@ impl Document {
|
|||
&mut *self.animation_frame_list.borrow_mut(),
|
||||
);
|
||||
|
||||
self.pending_animation_ticks
|
||||
.borrow_mut()
|
||||
.remove(AnimationTickType::REQUEST_ANIMATION_FRAME);
|
||||
|
||||
self.running_animation_callbacks.set(true);
|
||||
let was_faking_animation_frames = self.is_faking_animation_frames();
|
||||
let timing = self.global().performance().Now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue