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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.cpp

Issue 2644243002: Move ScrollableArea timer to TaskRunnerTimer. (Closed)
Patch Set: use derived class in unique_ptr Created 3 years, 11 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
Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index 7899bfb739fa6ae38580bd46562acd8c67d122a4..9d7b89b824cf651fc44fd6de55478af32b2658e3 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -31,6 +31,7 @@
#include "core/frame/VisualViewport.h"
#include "core/dom/DOMNodeIds.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
@@ -629,6 +630,10 @@ IntRect VisualViewport::visibleContentRect(
return rect;
}
+RefPtr<WebTaskRunner> VisualViewport::getTimerTaskRunner() const {
+ return TaskRunnerHelper::get(TaskType::UnspecedTimer, mainFrame());
+}
+
void VisualViewport::updateScrollOffset(const ScrollOffset& position,
ScrollType scrollType) {
if (didSetScaleOrLocation(m_scale, FloatPoint(position)) &&
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698