diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 15:19:16 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 15:19:16 +0000 |
commit | e8fb87f7be935d8ac566e8c7161cb89ef95f8b61 (patch) | |
tree | 3195dd0d2929934a5abe4ac68917e465534711b5 /chrome/browser/cocoa | |
parent | 0fd596bc7bc634fb11e3fd0e10917f8882c64617 (diff) | |
download | chromium_src-e8fb87f7be935d8ac566e8c7161cb89ef95f8b61.zip chromium_src-e8fb87f7be935d8ac566e8c7161cb89ef95f8b61.tar.gz chromium_src-e8fb87f7be935d8ac566e8c7161cb89ef95f8b61.tar.bz2 |
Fix for the bookmark_bar which got ignored in my earlier
theming CL (28613). This fixes up drawing so the themes
line up correctly.
BUG=24481, 24484
TEST=None
Review URL: http://codereview.chromium.org/271045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_toolbar_view.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm b/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm index 4a652aa..433f30f 100644 --- a/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm +++ b/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm @@ -23,14 +23,16 @@ const CGFloat kBorderRadius = 3.0; @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]; } } |