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

Unified Diff: ui/gfx/canvas_skia.cc

Issue 10939010: Cleanup: avoid foo ? true : false, part 1. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 3 months 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/base/win/ime_input.cc ('k') | ui/views/bubble/bubble_border.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_skia.cc
===================================================================
--- ui/gfx/canvas_skia.cc (revision 159076)
+++ ui/gfx/canvas_skia.cc (working copy)
@@ -323,7 +323,7 @@
}
} else {
ui::Range range = StripAcceleratorChars(flags, &adjusted_text);
- bool elide_text = (flags & NO_ELLIPSIS) ? false : true;
+ bool elide_text = ((flags & NO_ELLIPSIS) == 0);
#if defined(OS_LINUX)
// On Linux, eliding really means fading the end of the string. But only
« no previous file with comments | « ui/base/win/ime_input.cc ('k') | ui/views/bubble/bubble_border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698