| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
|
| index f402857a3150840a7cd0c5c6fd09f3394c05d04d..4f4905735b3b3c9525c4bd0ef5ba130740777a21 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
|
| @@ -59,6 +59,7 @@ BookmarkButton* gDraggedButton = nil; // Weak
|
|
|
| @synthesize delegate = delegate_;
|
| @synthesize acceptsTrackIn = acceptsTrackIn_;
|
| +@synthesize backgroundColor = backgroundColor_;
|
|
|
| - (id)initWithFrame:(NSRect)frameRect {
|
| // BookmarkButton's ViewID may be changed to VIEW_ID_OTHER_BOOKMARKS in
|
| @@ -81,6 +82,8 @@ BookmarkButton* gDraggedButton = nil; // Weak
|
| [area_ release];
|
| }
|
|
|
| + [backgroundColor_ release];
|
| +
|
| [super dealloc];
|
| }
|
|
|
| @@ -424,7 +427,12 @@ BookmarkButton* gDraggedButton = nil; // Weak
|
|
|
| - (void)drawRect:(NSRect)rect {
|
| NSView* bookmarkBarToolbarView = [[self superview] superview];
|
| - [self cr_drawUsingAncestor:bookmarkBarToolbarView inRect:(NSRect)rect];
|
| + if (backgroundColor_) {
|
| + [backgroundColor_ set];
|
| + NSRectFill(rect);
|
| + } else {
|
| + [self cr_drawUsingAncestor:bookmarkBarToolbarView inRect:(NSRect)rect];
|
| + }
|
| [super drawRect:rect];
|
| }
|
|
|
|
|