mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
script: change requestAnimationFrame returns the unsigned long type.
This commit is contained in:
parent
05deb3dcc8
commit
63627405d9
3 changed files with 8 additions and 8 deletions
|
@ -535,7 +535,7 @@ impl WindowMethods for Window {
|
|||
}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#dom-window-requestanimationframe
|
||||
fn RequestAnimationFrame(&self, callback: Rc<FrameRequestCallback>) -> i32 {
|
||||
fn RequestAnimationFrame(&self, callback: Rc<FrameRequestCallback>) -> u32 {
|
||||
let doc = self.Document();
|
||||
|
||||
let callback = move |now: f64| {
|
||||
|
@ -548,7 +548,7 @@ impl WindowMethods for Window {
|
|||
}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#dom-window-cancelanimationframe
|
||||
fn CancelAnimationFrame(&self, ident: i32) {
|
||||
fn CancelAnimationFrame(&self, ident: u32) {
|
||||
let doc = self.Document();
|
||||
doc.r().cancel_animation_frame(ident);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue