Index: ui/views/controls/scrollbar/cocoa_scroll_bar.mm |
diff --git a/ui/views/controls/scrollbar/cocoa_scroll_bar.mm b/ui/views/controls/scrollbar/cocoa_scroll_bar.mm |
index 9d54b673b7772dac0d8b2fdf12c75d8f286a4249..e3803b6ac4595bbc2ead69c6341f4232b770891f 100644 |
--- a/ui/views/controls/scrollbar/cocoa_scroll_bar.mm |
+++ b/ui/views/controls/scrollbar/cocoa_scroll_bar.mm |
@@ -95,7 +95,7 @@ CocoaScrollBarThumb::CocoaScrollBarThumb(CocoaScrollBar* scroll_bar) |
// This is necessary, otherwise the thumb will be rendered below the views if |
// those views paint to their own layers. |
- SetPaintToLayer(true); |
+ SetPaintToLayer(); |
layer()->SetFillsBoundsOpaquely(false); |
} |
@@ -177,7 +177,7 @@ CocoaScrollBar::CocoaScrollBar(bool horizontal) |
thickness_animation_.SetSlideDuration(kExpandDurationMs); |
- SetPaintToLayer(true); |
+ SetPaintToLayer(); |
has_scrolltrack_ = scroller_style_ == NSScrollerStyleLegacy; |
layer()->SetOpacity(scroller_style_ == NSScrollerStyleOverlay ? 0.0f : 1.0f); |
} |