summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm')
-rw-r--r--chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
index 6be1a30..1d0aef8 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
@@ -56,8 +56,7 @@ const CGFloat kBorderRadius = 3.0;
if (!themeProvider)
return;
- NSGraphicsContext* context = [NSGraphicsContext currentContext];
- gfx::ScopedNSGraphicsContextSaveGState scopedGState(context);
+ gfx::ScopedNSGraphicsContextSaveGState scopedGState;
// Draw the background.
{
@@ -103,8 +102,9 @@ const CGFloat kBorderRadius = 3.0;
// Fade in/out the background.
{
- gfx::ScopedNSGraphicsContextSaveGState bgScopedState(context);
+ gfx::ScopedNSGraphicsContextSaveGState bgScopedState;
[border setClip];
+ NSGraphicsContext* context = [NSGraphicsContext currentContext];
CGContextRef cgContext = (CGContextRef)[context graphicsPort];
CGContextBeginTransparencyLayer(cgContext, NULL);
CGContextSetAlpha(cgContext, 1 - morph);