Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm |
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 6be1a30c5e130dc140071f68a49dbc07ce8cd0be..6cbdd0ae2323984b13186e354b18ad06bee46512 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,8 @@ const CGFloat kBorderRadius = 3.0; |
if (!themeProvider) |
return; |
+ gfx::ScopedNSGraphicsContextSaveGState scopedGState; |
NSGraphicsContext* context = [NSGraphicsContext currentContext]; |
- gfx::ScopedNSGraphicsContextSaveGState scopedGState(context); |
// Draw the background. |
{ |
@@ -103,7 +103,7 @@ const CGFloat kBorderRadius = 3.0; |
// Fade in/out the background. |
{ |
- gfx::ScopedNSGraphicsContextSaveGState bgScopedState(context); |
+ gfx::ScopedNSGraphicsContextSaveGState bgScopedState; |
[border setClip]; |
CGContextRef cgContext = (CGContextRef)[context graphicsPort]; |
Mark Mentovai
2011/08/04 23:20:17
Does [NSGraphicContext currentContext] belong righ
Avi (use Gerrit)
2011/08/05 00:18:50
Done.
|
CGContextBeginTransparencyLayer(cgContext, NULL); |