From 346b1b50fe07165163f317d8b34835c18e656063 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Tue, 5 Apr 2011 17:38:27 +0000 Subject: NSColor* and NSSize arguments are a problem with receivers held by scoped_nsobject<> when using the 10.6 SDK. TEST=Compile with 10.6 SDK BUG=35569, 35578 (sort of) Review URL: http://codereview.chromium.org/6735060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80481 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/cocoa/profile_menu_button.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/browser/ui/cocoa/profile_menu_button.mm b/chrome/browser/ui/cocoa/profile_menu_button.mm index 6de199c..4162b1f 100644 --- a/chrome/browser/ui/cocoa/profile_menu_button.mm +++ b/chrome/browser/ui/cocoa/profile_menu_button.mm @@ -215,9 +215,9 @@ NSColor* GetBlackWithAlpha(CGFloat alpha) { // White shadow for inset look [[NSGraphicsContext currentContext] saveGraphicsState]; scoped_nsobject tabShadow([[NSShadow alloc] init]); - [tabShadow setShadowOffset:NSMakeSize(0, -1)]; + [tabShadow.get() setShadowOffset:NSMakeSize(0, -1)]; [tabShadow setShadowBlurRadius:0]; - [tabShadow setShadowColor:GetWhiteWithAlpha(0.6)]; + [tabShadow.get() setShadowColor:GetWhiteWithAlpha(0.6)]; [tabShadow set]; // Gray outline @@ -254,9 +254,9 @@ NSColor* GetBlackWithAlpha(CGFloat alpha) { // Arrow shadow [[NSGraphicsContext currentContext] saveGraphicsState]; scoped_nsobject arrowShadow([[NSShadow alloc] init]); - [arrowShadow setShadowOffset:NSMakeSize(0, -1)]; + [arrowShadow.get() setShadowOffset:NSMakeSize(0, -1)]; [arrowShadow setShadowBlurRadius:0]; - [arrowShadow setShadowColor:GetBlackWithAlpha(0.6)]; + [arrowShadow.get() setShadowColor:GetBlackWithAlpha(0.6)]; [arrowShadow set]; // Down arrow -- cgit v1.1