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

Unified Diff: cc/layer_impl.cc

Issue 11975007: Implement one-page-at-a-time mousewheel scrolling in the impl thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: cc/layer_impl.cc
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
index f9c3271a9426ad8b05d03a6de4939d764defd26d..1802a15dacef5c18b857958e81e46e8a84f580a0 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -820,6 +820,13 @@ void LayerImpl::setMaxScrollOffset(gfx::Vector2d maxScrollOffset)
m_scrollbarAnimationController->updateScrollOffset(this);
}
+void LayerImpl::setVisibleScrollArea(gfx::Size visibleScrollArea)
+{
+ if (m_visibleScrollArea == visibleScrollArea)
+ return;
+ m_visibleScrollArea = visibleScrollArea;
+}
+
ScrollbarLayerImpl* LayerImpl::horizontalScrollbarLayer()
{
return m_scrollbarAnimationController ? m_scrollbarAnimationController->horizontalScrollbarLayer() : 0;
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698