mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Rework “visible” to “throttled” in constellation + script + compositor (#31816)
This commit is contained in:
parent
9b26dca141
commit
8882507ad0
12 changed files with 124 additions and 129 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue