Skip to content

Commit

Permalink
DedicatedWorkerGlobalScope: add requestAnimationFrame and cancelAnima…
Browse files Browse the repository at this point in the history
…tionFrame (#23801)

These are instance methods included by the AnimationFrameProvider
mixin.

See https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames:dedicatedworkerglobalscope
  • Loading branch information
StenAL committed Jan 21, 2023
1 parent 48546c0 commit ae2fc99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/en-us/web/api/dedicatedworkerglobalscope/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ae2fc99

Please sign in to comment.