aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/document.rs')
-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();