LibWeb/HTML: Port Window.requestAnimationFrame() to IDL

This commit is contained in:
Linus Groh 2023-03-07 18:12:58 +00:00
commit 211e6c1fbc
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
4 changed files with 25 additions and 30 deletions

View file

@ -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);
};