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

Unified Diff: cc/layers/painted_scrollbar_layer_impl.cc

Issue 2468423004: Left side vertical MD scrollbars grow toward right. (Closed)
Patch Set: Created 4 years, 1 month 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/painted_scrollbar_layer_impl.h ('k') | cc/layers/painted_scrollbar_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/painted_scrollbar_layer_impl.cc
diff --git a/cc/layers/painted_scrollbar_layer_impl.cc b/cc/layers/painted_scrollbar_layer_impl.cc
index 8014576a4031a62f4603902a00456fbc9228b51d..6df7e4a86d2d079f7e1709c8b2e9b421f8eb216a 100644
--- a/cc/layers/painted_scrollbar_layer_impl.cc
+++ b/cc/layers/painted_scrollbar_layer_impl.cc
@@ -21,16 +21,24 @@ namespace cc {
std::unique_ptr<PaintedScrollbarLayerImpl> PaintedScrollbarLayerImpl::Create(
LayerTreeImpl* tree_impl,
int id,
- ScrollbarOrientation orientation) {
- return base::WrapUnique(
- new PaintedScrollbarLayerImpl(tree_impl, id, orientation));
+ ScrollbarOrientation orientation,
+ bool is_left_side_vertical_scrollbar,
+ bool is_overlay) {
+ return base::WrapUnique(new PaintedScrollbarLayerImpl(
+ tree_impl, id, orientation, is_left_side_vertical_scrollbar, is_overlay));
}
PaintedScrollbarLayerImpl::PaintedScrollbarLayerImpl(
LayerTreeImpl* tree_impl,
int id,
- ScrollbarOrientation orientation)
- : ScrollbarLayerImplBase(tree_impl, id, orientation, false, false),
+ ScrollbarOrientation orientation,
+ bool is_left_side_vertical_scrollbar,
+ bool is_overlay)
+ : ScrollbarLayerImplBase(tree_impl,
+ id,
+ orientation,
+ is_left_side_vertical_scrollbar,
+ is_overlay),
track_ui_resource_id_(0),
thumb_ui_resource_id_(0),
thumb_opacity_(1.f),
@@ -44,7 +52,9 @@ PaintedScrollbarLayerImpl::~PaintedScrollbarLayerImpl() {}
std::unique_ptr<LayerImpl> PaintedScrollbarLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
- return PaintedScrollbarLayerImpl::Create(tree_impl, id(), orientation());
+ return PaintedScrollbarLayerImpl::Create(tree_impl, id(), orientation(),
+ is_left_side_vertical_scrollbar(),
+ is_overlay_scrollbar());
}
void PaintedScrollbarLayerImpl::PushPropertiesTo(LayerImpl* layer) {
« no previous file with comments | « cc/layers/painted_scrollbar_layer_impl.h ('k') | cc/layers/painted_scrollbar_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698