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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2536643002: Introduce animation frame tasks (Closed)
Patch Set: tweak behavior, write tests Created 4 years 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
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index c34dd18006fa26ef70406f276544d7574a00f7af..fb81da1e1e6d7eecbc64350399f5a54212d3515d 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4276,6 +4276,10 @@ EventQueue* Document::getEventQueue() const {
return m_domWindow->getEventQueue();
}
+void Document::enqueueAnimationFrameTask(std::unique_ptr<WTF::Closure> task) {
+ ensureScriptedAnimationController().enqueueTask(std::move(task));
+}
+
void Document::enqueueAnimationFrameEvent(Event* event) {
ensureScriptedAnimationController().enqueueEvent(event);
}

Powered by Google App Engine
This is Rietveld 408576698