From ae2fc991ae8db8cc83515c0bb18f9df33a4236e8 Mon Sep 17 00:00:00 2001 From: Sten Arthur Laane <21343173+StenAL@users.noreply.github.com> Date: Sat, 21 Jan 2023 12:33:39 +0000 Subject: [PATCH] DedicatedWorkerGlobalScope: add requestAnimationFrame and cancelAnimationFrame (#23801) These are instance methods included by the AnimationFrameProvider mixin. See https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames:dedicatedworkerglobalscope --- files/en-us/web/api/dedicatedworkerglobalscope/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/en-us/web/api/dedicatedworkerglobalscope/index.md b/files/en-us/web/api/dedicatedworkerglobalscope/index.md index 357e11bd263b1a8..a3ebadcfd1d164c 100644 --- a/files/en-us/web/api/dedicatedworkerglobalscope/index.md +++ b/files/en-us/web/api/dedicatedworkerglobalscope/index.md @@ -68,6 +68,10 @@ _This interface inherits methods from the {{domxref("WorkerGlobalScope")}} inter - : Schedules the execution of a function every X milliseconds. - {{domxref("setTimeout")}} - : Sets a delay for executing a function. +- {{domxref("Window/requestAnimationFrame", "requestAnimationFrame")}} + - : Requests the browser to execute a callback function before painting the next frame. +- {{domxref("Window/cancelAnimationFrame", "cancelAnimationFrame")}} + - : Cancels a callback scheduled by requestAnimationFrame. ## Events