| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
|
| index 9a3799ac826631348634e1a02e87d2367e476be7..67f2aa5433f113d3b391ed3f95b5982fa315a21b 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
|
| @@ -371,6 +371,17 @@ const int kDefaultFontSize = 12;
|
| return kIconLeftPadding + [[self image] size].width + kIconTextSpacer;
|
| }
|
|
|
| +- (void)drawFocusRingMaskWithFrame:(NSRect)cellFrame
|
| + inView:(NSView*)controlView {
|
| + // In Material Design we have to move the focus ring over by 2 pts to get it
|
| + // to line up with the image.
|
| + if (ui::MaterialDesignController::IsModeMaterial() &&
|
| + [self visibleTitle].length > 0) {
|
| + cellFrame.origin.x += 2;
|
| + }
|
| + [super drawFocusRingMaskWithFrame:cellFrame inView:controlView];
|
| +}
|
| +
|
| // Override cell drawing to add a submenu arrow like a real menu.
|
| - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView {
|
| // First draw "everything else".
|
|
|