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

Unified Diff: Source/core/dom/Document.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/dom/Document.h ('k') | Source/core/dom/FrameRequestCallback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index a10964ed81e657c14f9e8e4b33b9e1c0669aee0c..05aefc66fd9d73c10421d6fbab4b964f40ca31d8 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -75,6 +75,7 @@
#include "core/dom/ElementTraversal.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContextTask.h"
+#include "core/dom/FrameRequestCallback.h"
#include "core/dom/MainThreadTaskRunner.h"
#include "core/dom/Microtask.h"
#include "core/dom/MutationObserver.h"
@@ -87,7 +88,6 @@
#include "core/dom/NodeTraversal.h"
#include "core/dom/NodeWithIndex.h"
#include "core/dom/ProcessingInstruction.h"
-#include "core/dom/RequestAnimationFrameCallback.h"
#include "core/dom/ScriptRunner.h"
#include "core/dom/ScriptedAnimationController.h"
#include "core/dom/SelectorQuery.h"
@@ -5076,7 +5076,7 @@ ScriptedAnimationController& Document::ensureScriptedAnimationController()
return *m_scriptedAnimationController;
}
-int Document::requestAnimationFrame(RequestAnimationFrameCallback* callback)
+int Document::requestAnimationFrame(FrameRequestCallback* callback)
{
return ensureScriptedAnimationController().registerCallback(callback);
}
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/FrameRequestCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698