diff options
author | Delan Azabani <dazabani@igalia.com> | 2024-03-22 14:06:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 06:06:28 +0000 |
commit | 8882507ad06b598fb43d8542c67ad76daeda739c (patch) | |
tree | 5d78c92d40aab37a71f87c6f5a1df0c5218e81c5 /components/script/dom/document.rs | |
parent | 9b26dca141159ddc75266de9ef5a54f537450921 (diff) | |
download | servo-8882507ad06b598fb43d8542c67ad76daeda739c.tar.gz servo-8882507ad06b598fb43d8542c67ad76daeda739c.zip |
Rework “visible” to “throttled” in constellation + script + compositor (#31816)
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index d03a31aa3a6..62ead49cb77 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1966,7 +1966,7 @@ impl Document { // If we are running 'fake' animation frames, we unconditionally // set up a one-shot timer for script to execute the rAF callbacks. - if self.is_faking_animation_frames() && self.window().visible() { + if self.is_faking_animation_frames() && !self.window().throttled() { warn!("Scheduling fake animation frame. Animation frames tick too fast."); let callback = FakeRequestAnimationFrameCallback { document: Trusted::new(self), |