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

Unified Diff: Source/core/layout/LayerScrollableArea.cpp

Issue 882813005: Respect the smooth scrolling setting in LayerScrollableArea. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 10 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/layout/LayerScrollableArea.h ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayerScrollableArea.cpp
diff --git a/Source/core/layout/LayerScrollableArea.cpp b/Source/core/layout/LayerScrollableArea.cpp
index 44f874f309ad6a9bcaf31b50d2d43a52bd3f1c9a..9a22335fc1334ee04b7103ec7ec1fe2e8039bd8b 100644
--- a/Source/core/layout/LayerScrollableArea.cpp
+++ b/Source/core/layout/LayerScrollableArea.cpp
@@ -488,6 +488,13 @@ IntPoint LayerScrollableArea::lastKnownMousePosition() const
return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition() : IntPoint();
}
+bool LayerScrollableArea::scrollAnimatorEnabled() const
+{
+ if (Settings* settings = box().frame()->settings())
+ return settings->scrollAnimatorEnabled();
+ return false;
+}
+
bool LayerScrollableArea::shouldSuspendScrollAnimations() const
{
RenderView* view = box().view();
« no previous file with comments | « Source/core/layout/LayerScrollableArea.h ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698