aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorDelan Azabani <dazabani@igalia.com>2024-03-22 14:06:28 +0800
committerGitHub <noreply@github.com>2024-03-22 06:06:28 +0000
commit8882507ad06b598fb43d8542c67ad76daeda739c (patch)
tree5d78c92d40aab37a71f87c6f5a1df0c5218e81c5 /components/script/dom/document.rs
parent9b26dca141159ddc75266de9ef5a54f537450921 (diff)
downloadservo-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.rs2
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),