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

Unified Diff: ui/compositor/layer.cc

Issue 2189583004: [not for review - epic CL] Adding Elastic+Momentum+Layered scrolling to views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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/compositor/compositor.cc ('k') | ui/compositor/overscroll/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 67886fcbe8c2c8c4bd925112d08d31cf7435f6a4..276f81029408d89baef5b153bae0ed4c3918f079 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -744,7 +744,8 @@ void Layer::OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) {
void Layer::SetScrollable(Layer* parent_clip_layer,
const base::Closure& on_scroll) {
- cc_layer_->SetScrollClipLayerId(parent_clip_layer->cc_layer_->id());
+ cc_layer_->SetScrollClipAndCanOverscroll(parent_clip_layer->cc_layer_->id(),
+ true /* can_overscroll */);
cc_layer_->set_did_scroll_callback(on_scroll);
cc_layer_->SetUserScrollable(true, true);
}
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/overscroll/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698