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

Unified Diff: ui/gfx/canvas_skia.cc

Issue 10743002: Fix fade-truncation of LTR tab titles under RTL UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | 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 145608)
+++ ui/gfx/canvas_skia.cc (working copy)
@@ -461,6 +461,10 @@
break;
}
+ // Default to left alignment unless right alignment was chosen above.
+ if (!(flags & TEXT_ALIGN_RIGHT))
+ flags |= TEXT_ALIGN_LEFT;
+
gfx::Rect rect = display_rect;
UpdateRenderText(rect, clipped_text, font, flags, color, render_text.get());
« 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