mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibWeb/HTML: Port Window.requestAnimationFrame() to IDL
This commit is contained in:
parent
86589f09dc
commit
211e6c1fbc
4 changed files with 25 additions and 30 deletions
|
@ -0,0 +1,8 @@
|
|||
#import <HighResolutionTime/DOMHighResTimeStamp.idl>
|
||||
|
||||
callback FrameRequestCallback = undefined (DOMHighResTimeStamp time);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animationframeprovider
|
||||
interface mixin AnimationFrameProvider {
|
||||
unsigned long requestAnimationFrame(FrameRequestCallback callback);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue