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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2868553002: Reland Fade out overlay scrollbar after page load (Closed)
Patch Set: fix test Created 3 years, 7 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 33e17df36dbcd6eccc72e0f565d7195437c20185..253f398a36936e49a7d66b5c0e8eb87ab90e200c 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1694,6 +1694,9 @@ void LayerTreeImpl::RegisterScrollLayer(LayerImpl* layer) {
std::pair<int, int>(layer->scroll_clip_layer_id(), layer->id()));
DidUpdateScrollState(layer->id());
+
+ if (settings().scrollbar_animator == LayerTreeSettings::AURA_OVERLAY)
+ layer->set_needs_show_scrollbars(true);
}
void LayerTreeImpl::UnregisterScrollLayer(LayerImpl* layer) {
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698