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

Unified Diff: ui/message_center/views/bounded_label.cc

Issue 953093003: Cleanup unnecessary code in canvas_skia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/gfx/canvas_skia.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/bounded_label.cc
diff --git a/ui/message_center/views/bounded_label.cc b/ui/message_center/views/bounded_label.cc
index a634a29dd01b9ad167d25f61d8b68700603f7b8f..ca9f0f954124f917db750820afb83a621aadab70 100644
--- a/ui/message_center/views/bounded_label.cc
+++ b/ui/message_center/views/bounded_label.cc
@@ -199,11 +199,7 @@ int InnerBoundedLabel::GetTextFlags() {
if (SkColorGetA(background_color()) != 0xFF)
flags |= gfx::Canvas::NO_SUBPIXEL_RENDERING;
- const base::i18n::TextDirection direction =
- base::i18n::GetFirstStrongCharacterDirection(text());
- if (direction == base::i18n::RIGHT_TO_LEFT)
- return flags | gfx::Canvas::FORCE_RTL_DIRECTIONALITY;
- return flags | gfx::Canvas::FORCE_LTR_DIRECTIONALITY;
+ return flags | gfx::Canvas::TEXT_ALIGN_TO_HEAD;
}
void InnerBoundedLabel::ClearCaches() {
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698