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

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

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « ui/views/controls/combobox/native_combobox_win.cc ('k') | ui/views/controls/link.cc » ('j') | 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 38ebf8a082e2594266b9fca9d107018c15f033b0..1bf03262c1fadd8db5f216bd0ada5b8a59ab2271 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -268,7 +268,7 @@ void Label::PaintText(gfx::Canvas* canvas,
const gfx::Rect& text_bounds,
int flags) {
canvas->DrawStringInt(text, font_,
- IsEnabled() ? actual_enabled_color_ : actual_disabled_color_,
+ enabled() ? actual_enabled_color_ : actual_disabled_color_,
text_bounds.x(), text_bounds.y(), text_bounds.width(),
text_bounds.height(), flags);
« no previous file with comments | « ui/views/controls/combobox/native_combobox_win.cc ('k') | ui/views/controls/link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698