/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/AnimationFrameProvider.webidl
14 строк
627 B
Taym Haddadi
script: Deliver animation frames to dedicated workers (#46232)
06 авг 2026, 12:28
Не верифицирован
06 авг 2026, 12:28
12c1908
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ // https://html.spec.whatwg.org/multipage/#animation-frames callback FrameRequestCallback = undefined (DOMHighResTimeStamp time); interface mixin AnimationFrameProvider { [Throws] unsigned long requestAnimationFrame(FrameRequestCallback callback); [Throws] undefined cancelAnimationFrame(unsigned long handle); }; Window includes AnimationFrameProvider; DedicatedWorkerGlobalScope includes AnimationFrameProvider;