| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| index 00a78454ae71680e2c627b47c053a1f58a145486..9e9dc9bad7bdc58bd7800fc4fc738cb0168323f8 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| @@ -291,13 +291,10 @@ const CGFloat kAnimationDuration = 0.2;
|
| if (!ui::MaterialDesignController::IsSecondaryUiMaterial())
|
| return [self arrowAnchorPointForDecoration:decoration];
|
|
|
| - // Under MD, dialogs have no arrow and anchor to corner of the decoration
|
| + // Under MD, dialogs have no arrow and anchor to corner of the location bar
|
| // frame, not a specific point within it. See http://crbug.com/566115.
|
| - BOOL isLeftDecoration;
|
| - const NSRect frame =
|
| - [[self cell] backgroundFrameForDecoration:decoration
|
| - inFrame:[self bounds]
|
| - isLeftDecoration:&isLeftDecoration];
|
| + BOOL isLeftDecoration = [[self cell] isLeftDecoration:decoration];
|
| + const NSRect frame = [self bounds];
|
| NSPoint point = NSMakePoint(isLeftDecoration ? NSMinX(frame) : NSMaxX(frame),
|
| NSMaxY(frame));
|
| return [self convertPoint:point toView:nil];
|
|
|