Index: Source/WebCore/page/DOMWindow.cpp |
=================================================================== |
--- Source/WebCore/page/DOMWindow.cpp (revision 139634) |
+++ Source/WebCore/page/DOMWindow.cpp (working copy) |
@@ -1549,11 +1549,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()) |