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

Unified Diff: ui/views/controls/scrollbar/scroll_bar_views.cc

Issue 2555213004: Improving the appearance of overlay scrollbars (Closed)
Patch Set: attempt to fix mac Created 4 years 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
Index: ui/views/controls/scrollbar/scroll_bar_views.cc
diff --git a/ui/views/controls/scrollbar/scroll_bar_views.cc b/ui/views/controls/scrollbar/scroll_bar_views.cc
index 066a56c5ca61d20e3cd571f149657333d6e9dae0..882e3814bd220df6f5090d050f4404809fb82896 100644
--- a/ui/views/controls/scrollbar/scroll_bar_views.cc
+++ b/ui/views/controls/scrollbar/scroll_bar_views.cc
@@ -278,15 +278,15 @@ void ScrollBarViews::OnPaint(gfx::Canvas* canvas) {
}
gfx::Size ScrollBarViews::GetPreferredSize() const {
- return gfx::Size(IsHorizontal() ? 0 : GetLayoutSize(),
- IsHorizontal() ? GetLayoutSize() : 0);
+ return gfx::Size(IsHorizontal() ? 0 : GetThickness(),
+ IsHorizontal() ? GetThickness() : 0);
}
const char* ScrollBarViews::GetClassName() const {
return kViewClassName;
}
-int ScrollBarViews::GetLayoutSize() const {
+int ScrollBarViews::GetThickness() const {
const ui::NativeTheme* theme = GetNativeTheme();
return IsHorizontal() ? GetHorizontalScrollBarHeight(theme)
: GetVerticalScrollBarWidth(theme);
« ui/views/controls/scroll_view.cc ('K') | « ui/views/controls/scrollbar/scroll_bar_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698