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

Unified Diff: ui/views/controls/button/label_button_border.cc

Issue 62873007: [Toolbar] Base toolbar button class with background images for button states (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Account for maximized state. Created 7 years, 1 month 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/button/label_button_border.cc
diff --git a/ui/views/controls/button/label_button_border.cc b/ui/views/controls/button/label_button_border.cc
index fb6ea0695b8f834cafcdc3104065e1526b71171c..73e8e0a2726c9889fee8af888fff8a3ea0f7a86b 100644
--- a/ui/views/controls/button/label_button_border.cc
+++ b/ui/views/controls/button/label_button_border.cc
@@ -58,7 +58,7 @@ void PaintHelper(LabelButtonBorder* border,
if (!painter && extra.button.is_focused)
painter = border->GetPainter(false, GetButtonState(state));
if (painter)
- painter->Paint(canvas, rect.size());
+ Painter::PaintPainterAt(canvas, painter, rect);
}
}
« ui/views/controls/button/label_button.h ('K') | « ui/views/controls/button/label_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698