| Index: Source/WebCore/page/DOMWindow.cpp
|
| ===================================================================
|
| --- Source/WebCore/page/DOMWindow.cpp (revision 140069)
|
| +++ Source/WebCore/page/DOMWindow.cpp (working copy)
|
| @@ -1553,11 +1553,20 @@
|
| #if ENABLE(REQUEST_ANIMATION_FRAME)
|
| int DOMWindow::requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback)
|
| {
|
| + callback->m_useLegacyTimeBase = false;
|
| if (Document* d = document())
|
| return d->requestAnimationFrame(callback);
|
| return 0;
|
| }
|
|
|
| +int DOMWindow::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback)
|
| +{
|
| + callback->m_useLegacyTimeBase = true;
|
| + if (Document* d = document())
|
| + return d->requestAnimationFrame(callback);
|
| + return 0;
|
| +}
|
| +
|
| void DOMWindow::cancelAnimationFrame(int id)
|
| {
|
| if (Document* d = document())
|
|
|