Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6109)

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 481273002: Mac: Fix a recently introduced layering bug. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase against top of tree. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c4f5c6f70853ecec90e2be1844a7cabfecded22a..9ae19ccc8299a14346d820e15050d1cc37a2944a 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -677,6 +677,7 @@ 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.
+ windowViewWantsLayer_ = [[[self window] cr_windowView] wantsLayer];
[[[self window] cr_windowView] setWantsLayer:YES];
}
NSView* contentView = [[self window] contentView];
@@ -914,7 +915,7 @@ willPositionSheet:(NSWindow*)sheet
[self showFullscreenExitBubbleIfNecessary];
browser_->WindowFullscreenStateChanged();
- [[[self window] cr_windowView] setWantsLayer:NO];
+ [[[self window] cr_windowView] setWantsLayer:windowViewWantsLayer_];
[self updateRoundedBottomCorners];
}
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698