Chromium Code Reviews| Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| index 700739e711e5f3cb4693ec7f7dc1b77bafe0c869..588837e8821f471b7372820e939b67e9ab4d6f94 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| @@ -677,7 +677,8 @@ willPositionSheet:(NSWindow*)sheet |
| // Leaving wantsLayer on for the duration of presentation mode causes |
| // performance issues when the dropdown is animated in/out. It also does |
| // not seem to be required for the exit animation. |
| - [[[self window] cr_windowView] setWantsLayer:YES]; |
| + windowViewWantsLayer_ = [[[self window] cr_windowView] wantsLayer]; |
| + [[[self window] cr_windowView] cr_setWantsLayer:YES]; |
|
ccameron
2014/08/19 01:08:25
cr_setWantsLayer is dead now.
erikchen
2014/08/19 01:10:51
Done.
|
| } |
| NSView* contentView = [[self window] contentView]; |
| [presentationModeController_ enterPresentationModeForContentView:contentView |
| @@ -900,7 +901,7 @@ willPositionSheet:(NSWindow*)sheet |
| [self showFullscreenExitBubbleIfNecessary]; |
| browser_->WindowFullscreenStateChanged(); |
| - [[[self window] cr_windowView] setWantsLayer:NO]; |
| + [[[self window] cr_windowView] cr_setWantsLayer:windowViewWantsLayer_]; |
| [self updateRoundedBottomCorners]; |
| } |