Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc |
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc |
index d8be6aeda8b33b0f4c214b9e558fac3728ec478f..01bd281ac1acc6d3b8a08428806a9a30af9adf75 100644 |
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc |
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc |
@@ -73,7 +73,7 @@ class WindowControlButton : public views::CustomButton { |
// Overridden from views::View: |
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { |
- canvas->FillRectInt(GetBackgroundColor(), 0, 0, width(), height()); |
+ canvas->FillRect(GetBackgroundColor(), GetLocalBounds()); |
canvas->DrawBitmapInt(icon_, 0, 0); |
} |
virtual gfx::Size GetPreferredSize() OVERRIDE { |