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

Unified Diff: ui/views/controls/label.cc

Issue 8764005: views::Label should paint borders in the overridden OnPaint() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« 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/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index 452322e3d84e803fac221cd15f9c103791e4b84a..a5daf46d177c90add1e1e39a2d33d421c1b384be 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -313,6 +313,8 @@ void Label::OnPaint(gfx::Canvas* canvas) {
int flags = 0;
CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
PaintText(canvas, paint_text, text_bounds, flags);
+ OnPaintFocusBorder(canvas);
sky 2011/12/01 01:02:42 Do these really need to be after painting the text
varunjain 2011/12/01 05:12:03 You are correct that we can just do View::OnPaint(
+ OnPaintBorder(canvas);
}
void Label::OnPaintBackground(gfx::Canvas* canvas) {
« 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