diff options
Diffstat (limited to 'components/script/dom/webidls/Window.webidl')
-rw-r--r-- | components/script/dom/webidls/Window.webidl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/webidls/Window.webidl b/components/script/dom/webidls/Window.webidl index 8999d9e561d..08caf90004e 100644 --- a/components/script/dom/webidls/Window.webidl +++ b/components/script/dom/webidls/Window.webidl @@ -141,3 +141,10 @@ interface WindowLocalStorage { readonly attribute Storage localStorage; }; Window implements WindowLocalStorage; + +// http://w3c.github.io/animation-timing/#Window-interface-extensions +partial interface Window { + long requestAnimationFrame(FrameRequestCallback callback); + void cancelAnimationFrame(long handle); +}; +callback FrameRequestCallback = void (DOMHighResTimeStamp time); |