| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
|
| ===================================================================
|
| --- chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm (revision 95630)
|
| +++ chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm (working copy)
|
| @@ -56,7 +56,8 @@
|
| if (!themeProvider)
|
| return;
|
|
|
| - gfx::ScopedNSGraphicsContextSaveGState scopedGState;
|
| + NSGraphicsContext* context = [NSGraphicsContext currentContext];
|
| + gfx::ScopedNSGraphicsContextSaveGState scopedGState(context);
|
|
|
| // Draw the background.
|
| {
|
| @@ -102,9 +103,8 @@
|
|
|
| // Fade in/out the background.
|
| {
|
| - gfx::ScopedNSGraphicsContextSaveGState bgScopedState;
|
| + gfx::ScopedNSGraphicsContextSaveGState bgScopedState(context);
|
| [border setClip];
|
| - NSGraphicsContext* context = [NSGraphicsContext currentContext];
|
| CGContextRef cgContext = (CGContextRef)[context graphicsPort];
|
| CGContextBeginTransparencyLayer(cgContext, NULL);
|
| CGContextSetAlpha(cgContext, 1 - morph);
|
|
|