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

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

Issue 2576563002: [Mac] Reverse the omnibox in RTL (Closed)
Patch Set: Review comments Created 4 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
Index: chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
index 40e2d937c79190e893b9e07ed23a51b62c3becac..0591b5d64ed7de0a5ec05ab5463c42b97ccda73d 100644
--- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
@@ -83,7 +83,7 @@ NSRect BubbleDecoration::GetImageRectInFrame(NSRect frame) {
image_rect.size = image_size;
if (cocoa_l10n_util::ShouldDoExperimentalRTLLayout()) {
image_rect.origin.x =
- NSMaxX(frame) - NSWidth(image_rect) - NSMinX(image_rect);
+ NSMaxX(frame) - NSWidth(image_rect) - kLeftSidePadding;
}
}
return image_rect;

Powered by Google App Engine
This is Rietveld 408576698