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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index f7aeadb1036ab9aedde8012605a4a8605de8b087..a57884d03b646f258f1f24b7a4a8efb86e5ea21c 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -48,6 +48,7 @@
#include "core/dom/AXObjectCache.h"
#include "core/dom/DOMNodeIds.h"
#include "core/dom/Node.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/FrameSelection.h"
#include "core/frame/FrameHost.h"
@@ -882,6 +883,10 @@ FloatQuad PaintLayerScrollableArea::localToVisibleContentQuad(
return localObject->localToAncestorQuad(quad, box, flags);
}
+RefPtr<WebTaskRunner> PaintLayerScrollableArea::getTimerTaskRunner() const {
+ return TaskRunnerHelper::get(TaskType::UnspecedTimer, box().frame());
+}
+
ScrollBehavior PaintLayerScrollableArea::scrollBehaviorStyle() const {
return box().style()->getScrollBehavior();
}

Powered by Google App Engine
This is Rietveld 408576698