Index: chrome/browser/ui/cocoa/download/download_item_cell.mm |
diff --git a/chrome/browser/ui/cocoa/download/download_item_cell.mm b/chrome/browser/ui/cocoa/download/download_item_cell.mm |
index ee2a597c3497e642a1681dd8c3052e91c5e10942..d35d27540c695f07561aada89a40384cb6fa867b 100644 |
--- a/chrome/browser/ui/cocoa/download/download_item_cell.mm |
+++ b/chrome/browser/ui/cocoa/download/download_item_cell.mm |
@@ -406,14 +406,14 @@ const int kInterruptedAnimationDuration = 2.5; |
nil]; |
NSPoint secondaryPos = |
NSMakePoint(innerFrame.origin.x + kTextPosLeft, kSecondaryTextPosTop); |
+ |
+ gfx::ScopedNSGraphicsContextSaveGState contextSave; |
NSGraphicsContext* nsContext = [NSGraphicsContext currentContext]; |
CGContextRef cgContext = (CGContextRef)[nsContext graphicsPort]; |
- [nsContext saveGraphicsState]; |
[nsContext setCompositingOperation:NSCompositeSourceOver]; |
CGContextSetAlpha(cgContext, statusAlpha_); |
[secondaryText drawAtPoint:secondaryPos |
withAttributes:secondaryTextAttributes]; |
- [nsContext restoreGraphicsState]; |
} |
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView*)controlView { |
@@ -579,8 +579,7 @@ const int kInterruptedAnimationDuration = 2.5; |
[triangle lineToPoint:p3]; |
[triangle closePath]; |
- NSGraphicsContext* context = [NSGraphicsContext currentContext]; |
- gfx::ScopedNSGraphicsContextSaveGState scopedGState(context); |
+ gfx::ScopedNSGraphicsContextSaveGState scopedGState; |
scoped_nsobject<NSShadow> shadow([[NSShadow alloc] init]); |
[shadow.get() setShadowColor:[NSColor whiteColor]]; |