Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Unified Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 1043903003: rAF: Introduce FrameRequestCallbackCollection for managing rAF callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/RemoteDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index 04c7787605077cec7108d993306e252b9d058fad..54881b1d527f87c67ca1461935e292a2decccbb5 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -36,7 +36,7 @@
#include "core/css/StyleMedia.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/DOMImplementation.h"
-#include "core/dom/RequestAnimationFrameCallback.h"
+#include "core/dom/FrameRequestCallback.h"
#include "core/editing/Editor.h"
#include "core/events/DOMWindowEventQueue.h"
#include "core/events/HashChangeEvent.h"
@@ -1340,7 +1340,7 @@ void LocalDOMWindow::resizeTo(int width, int height, bool hasWidth, bool hasHeig
host->chrome().setWindowRect(adjustWindowRect(*frame(), update));
}
-int LocalDOMWindow::requestAnimationFrame(RequestAnimationFrameCallback* callback)
+int LocalDOMWindow::requestAnimationFrame(FrameRequestCallback* callback)
{
callback->m_useLegacyTimeBase = false;
if (Document* d = document())
@@ -1348,7 +1348,7 @@ int LocalDOMWindow::requestAnimationFrame(RequestAnimationFrameCallback* callbac
return 0;
}
-int LocalDOMWindow::webkitRequestAnimationFrame(RequestAnimationFrameCallback* callback)
+int LocalDOMWindow::webkitRequestAnimationFrame(FrameRequestCallback* callback)
{
callback->m_useLegacyTimeBase = true;
if (Document* d = document())
« no previous file with comments | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/RemoteDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698