mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
parent
f5e97ef1b5
commit
9c11781880
20 changed files with 25 additions and 29 deletions
|
@ -970,7 +970,7 @@ impl<'a> DocumentHelpers<'a> for &'a Document {
|
|||
/// https://html.spec.whatwg.org/multipage/#dom-window-cancelanimationframe
|
||||
fn cancel_animation_frame(self, ident: i32) {
|
||||
self.animation_frame_list.borrow_mut().remove(&ident);
|
||||
if self.animation_frame_list.borrow().len() == 0 {
|
||||
if self.animation_frame_list.borrow().is_empty() {
|
||||
let window = self.window.root();
|
||||
let window = window.r();
|
||||
let ConstellationChan(ref chan) = window.constellation_chan();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue