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

Unified Diff: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm

Issue 2702683002: [Mac RTL] Fix text alignment in the security bubble. (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
index 7d105a92fa5fc35b0d3f1cce70832aa3bbb32bf6..63d57f320db196887ba8373d648969414f8225ba 100644
--- a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
@@ -80,6 +80,8 @@ SecurityStateBubbleDecoration::SecurityStateBubbleDecoration(
base::scoped_nsobject<NSMutableParagraphStyle> style(
[[NSMutableParagraphStyle alloc] init]);
[style setLineBreakMode:NSLineBreakByClipping];
+ if (cocoa_l10n_util::ShouldDoExperimentalRTLLayout())
+ [style setAlignment:NSRightTextAlignment];
[attributes_ setObject:style forKey:NSParagraphStyleAttributeName];
animation_.SetTweenType(gfx::Tween::FAST_OUT_SLOW_IN);
}
« 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