summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/AnimationFrameProvider.idl
blob: c34ab2974fcf5d4f4659d70a64b572ea7084316e (plain)
1
2
3
4
5
6
7
8
9
#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);
    undefined cancelAnimationFrame(unsigned long handle);
};