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

Side by Side Diff: cc/layers/scrollbar_layer_impl_base.cc

Issue 2918753002: Prevent create ScrollbarAnimationController for Mac Overlay Scrollbar (Closed)
Patch Set: fix without MACOSX macro Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « cc/layers/scrollbar_layer_impl_base.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/scrollbar_layer_impl_base.h" 5 #include "cc/layers/scrollbar_layer_impl_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include "cc/trees/effect_node.h" 8 #include "cc/trees/effect_node.h"
9 #include "cc/trees/layer_tree_impl.h" 9 #include "cc/trees/layer_tree_impl.h"
10 #include "cc/trees/scroll_node.h" 10 #include "cc/trees/scroll_node.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 if (node->opacity == opacity) 258 if (node->opacity == opacity)
259 return; 259 return;
260 260
261 node->opacity = opacity; 261 node->opacity = opacity;
262 node->effect_changed = true; 262 node->effect_changed = true;
263 property_trees->changed = true; 263 property_trees->changed = true;
264 property_trees->effect_tree.set_needs_update(true); 264 property_trees->effect_tree.set_needs_update(true);
265 layer_tree_impl()->set_needs_update_draw_properties(); 265 layer_tree_impl()->set_needs_update_draw_properties();
266 } 266 }
267 267
268 LayerTreeSettings::ScrollbarAnimator
269 ScrollbarLayerImplBase::GetScrollbarAnimator() const {
270 return layer_tree_impl()->settings().scrollbar_animator;
271 }
272
268 } // namespace cc 273 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_impl_base.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698