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

Unified Diff: ui/views/controls/scroll_view.cc

Issue 2680953002: Remove GraphicsLayer::didScroll and directly call ScrollableArea::didScroll (Closed)
Patch Set: Incorporate reviewer comments: more tests, less bad tests Created 3 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 | « ui/views/controls/scroll_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scroll_view.cc
diff --git a/ui/views/controls/scroll_view.cc b/ui/views/controls/scroll_view.cc
index 9440e343966549c8a24070dba1aef7e06eb976dc..f457cb7c67ccec7191db74cd14b80f495055e4cb 100644
--- a/ui/views/controls/scroll_view.cc
+++ b/ui/views/controls/scroll_view.cc
@@ -699,7 +699,7 @@ void ScrollView::ScrollToOffset(const gfx::ScrollOffset& offset) {
// but will only be invoked (asynchronously) when a Compositor is present
// and commits a frame, which isn't true in some tests.
// See http://crbug.com/637521.
- OnLayerScrolled();
+ OnLayerScrolled(offset);
} else {
contents_->SetPosition(gfx::Point(-offset.x(), -offset.y()));
ScrollHeader();
@@ -720,7 +720,7 @@ void ScrollView::EnableViewPortLayer() {
contents_viewport_->layer()->SetMasksToBounds(true);
}
-void ScrollView::OnLayerScrolled() {
+void ScrollView::OnLayerScrolled(const gfx::ScrollOffset&) {
UpdateScrollBarPositions();
ScrollHeader();
}
« no previous file with comments | « ui/views/controls/scroll_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698