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

Unified Diff: cc/layers/layer_impl.cc

Issue 2770293003: Feed ScrollableArea::showOverlayScrollbars into ScrollbarAnimationController. (Closed)
Patch Set: rebase Created 3 years, 9 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/layers/layer_impl.h ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 4487ed9839168fd77b2f112d795911feed95a2bc..e18a327fe3200fcb1e8027f8f935ca609e992de3 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -80,7 +80,8 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
debug_info_(nullptr),
has_will_change_transform_hint_(false),
needs_push_properties_(false),
- scrollbars_hidden_(false) {
+ scrollbars_hidden_(false),
+ needs_show_scrollbars_(false) {
DCHECK_GT(layer_id_, 0);
DCHECK(layer_tree_impl_);
@@ -338,6 +339,7 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
layer->scroll_tree_index_ = scroll_tree_index_;
layer->has_will_change_transform_hint_ = has_will_change_transform_hint_;
layer->scrollbars_hidden_ = scrollbars_hidden_;
+ layer->needs_show_scrollbars_ = needs_show_scrollbars_;
if (layer_property_changed_) {
layer->layer_tree_impl()->set_needs_update_draw_properties();
@@ -360,6 +362,7 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
layer->SetDebugInfo(std::move(owned_debug_info_));
// Reset any state that should be cleared for the next update.
+ needs_show_scrollbars_ = false;
layer_property_changed_ = false;
needs_push_properties_ = false;
update_rect_ = gfx::Rect();
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698