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

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

Issue 2594543004: [Mac] Fix bubble anchors in RTL (Closed)
Patch Set: 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/content_setting_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
index 1324e00fd318e3b1b35661ca103cd93d49259d0a..ad4121efb625cae6019b2149ae8812bfb0fb39cc 100644
--- a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
@@ -264,12 +264,6 @@ ContentSettingDecoration::CreateAnimatedText() {
}
NSPoint ContentSettingDecoration::GetBubblePointInFrame(NSRect frame) {
- // Compute the frame as if there is no animation pill in the Omnibox. Place
- // the bubble where the icon would be without animation, so when the animation
- // ends, the bubble is pointing in the right place.
- NSSize image_size = [GetImage() size];
- frame.origin.x += frame.size.width - image_size.width;
- frame.size = image_size;
const NSRect draw_frame = GetDrawRectInFrame(frame);
return NSMakePoint(NSMidX(draw_frame),

Powered by Google App Engine
This is Rietveld 408576698