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

Unified Diff: ui/native_theme/native_theme_base.cc

Issue 456473002: MacViews: Implement scrollbar theming. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for tapted Created 6 years, 4 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 | « no previous file | ui/native_theme/native_theme_mac.h » ('j') | ui/native_theme/native_theme_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_base.cc
diff --git a/ui/native_theme/native_theme_base.cc b/ui/native_theme/native_theme_base.cc
index 1272af7ecd19040b1f91e1c0cd15d4a94b168b7e..c63b3c6559584c39f0449400b1876add668616af 100644
--- a/ui/native_theme/native_theme_base.cc
+++ b/ui/native_theme/native_theme_base.cc
@@ -236,7 +236,8 @@ void NativeThemeBase::Paint(SkCanvas* canvas,
case kScrollbarUpArrow:
case kScrollbarLeftArrow:
case kScrollbarRightArrow:
- PaintArrowButton(canvas, rect, part, state);
+ if (scrollbar_button_length_ > 0)
tapted 2014/08/13 01:13:29 nit: perhaps a comment (here, or - probably better
Andre 2014/08/13 20:04:21 Done.
+ PaintArrowButton(canvas, rect, part, state);
break;
case kScrollbarHorizontalThumb:
case kScrollbarVerticalThumb:
« no previous file with comments | « no previous file | ui/native_theme/native_theme_mac.h » ('j') | ui/native_theme/native_theme_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698