Index: ui/views/controls/focusable_border.cc |
diff --git a/ui/views/controls/focusable_border.cc b/ui/views/controls/focusable_border.cc |
index 508135879c664e343c69273cf1441cac0e5cfe62..6e87758c09bb48d12b2fce64732e072e0858c05d 100644 |
--- a/ui/views/controls/focusable_border.cc |
+++ b/ui/views/controls/focusable_border.cc |
@@ -8,6 +8,7 @@ |
#include "ui/gfx/canvas_skia.h" |
#include "ui/gfx/insets.h" |
#include "ui/gfx/native_theme.h" |
+#include "ui/gfx/skia_util.h" |
namespace { |
@@ -28,11 +29,8 @@ FocusableBorder::FocusableBorder() |
} |
void FocusableBorder::Paint(const View& view, gfx::Canvas* canvas) const { |
- SkRect rect; |
- rect.set(SkIntToScalar(0), SkIntToScalar(0), |
- SkIntToScalar(view.width()), SkIntToScalar(view.height())); |
SkPath path; |
- path.addRect(rect, SkPath::kCW_Direction); |
+ path.addRect(gfx::RectToSkRect(view.GetLocalBounds()), SkPath::kCW_Direction); |
SkPaint paint; |
paint.setStyle(SkPaint::kStroke_Style); |
SkColor focus_color = gfx::NativeTheme::instance()->GetSystemColor( |