aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorwebbeef <me@webbeef.org>2025-02-01 10:10:20 -0800
committerGitHub <noreply@github.com>2025-02-01 18:10:20 +0000
commitc4f4d5cc04d25dbeb032be19a681baedb0f7ac38 (patch)
tree6df5ff8cbb2d7087bff7bf4415b6421bf449141c /components/script/dom
parent8999b539dfd269320e175002160f1b4ea2548af9 (diff)
downloadservo-c4f4d5cc04d25dbeb032be19a681baedb0f7ac38.tar.gz
servo-c4f4d5cc04d25dbeb032be19a681baedb0f7ac38.zip
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>
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/document.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index f7bfc88de82..83a98351ddc 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -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();