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

Unified Diff: ui/native_theme/native_theme_aura.cc

Issue 165473003: Fixes bug in paint scrollbar corner (again) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_aura.cc
diff --git a/ui/native_theme/native_theme_aura.cc b/ui/native_theme/native_theme_aura.cc
index 91e5ec1ebde68f14e0923c4930aa3c77f0a1c88b..bcec3fa78cf9030a11205badf6c455ecba318f69 100644
--- a/ui/native_theme/native_theme_aura.cc
+++ b/ui/native_theme/native_theme_aura.cc
@@ -15,6 +15,7 @@
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
#include "ui/gfx/skbitmap_operations.h"
+#include "ui/gfx/skia_util.h"
#include "ui/native_theme/common_theme.h"
using gfx::NineImagePainter;
@@ -166,7 +167,11 @@ void NativeThemeAura::PaintScrollbarThumb(SkCanvas* sk_canvas,
void NativeThemeAura::PaintScrollbarCorner(SkCanvas* canvas,
State state,
const gfx::Rect& rect) const {
- canvas->drawColor(SkColorSetRGB(0xF1, 0xF1, 0xF1), SkXfermode::kSrc_Mode);
+ SkPaint paint;
+ paint.setColor(SkColorSetRGB(0xF1, 0xF1, 0xF1));
+ paint.setStyle(SkPaint::kFill_Style);
+ paint.setXfermodeMode(SkXfermode::kSrc_Mode);
+ canvas->drawIRect(RectToSkIRect(rect), paint);
}
NineImagePainter* NativeThemeAura::GetOrCreatePainter(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698