| Index: chrome/browser/cocoa/bookmark_bar_toolbar_view.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/bookmark_bar_toolbar_view.mm (revision 28656)
|
| +++ chrome/browser/cocoa/bookmark_bar_toolbar_view.mm (working copy)
|
| @@ -23,14 +23,16 @@
|
| @implementation BookmarkBarToolbarView
|
|
|
| - (BOOL)isOpaque {
|
| - return YES;
|
| + return [controller_ drawAsFloatingBar];
|
| }
|
|
|
| - (void)drawRect:(NSRect)rect {
|
| if ([controller_ drawAsFloatingBar]) {
|
| [self drawRectAsFloating:rect];
|
| } else {
|
| - [super drawRect:rect];
|
| + NSPoint phase = [self gtm_themePatternPhase];
|
| + [[NSGraphicsContext currentContext] setPatternPhase:phase];
|
| + [self drawBackground];
|
| }
|
| }
|
|
|
|
|