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

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

Issue 184433005: Give the browser window's content view a CALayers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use scoped object Created 6 years, 10 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 | « no previous file | chrome/browser/ui/cocoa/fast_resize_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 043ac8f4b09baeb4db6e407591eee35b18feda86..17dbea8fe67926df289225bb531774d5ae7dfc4d 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -262,6 +262,10 @@ enum {
browser_.reset(browser);
ownsBrowser_ = ownIt;
NSWindow* window = [self window];
+ // Make the content view for the window have a layer. This will make all
+ // sub-views have layers. This is necessary to ensure correct layer
+ // ordering of all child views and their layers.
+ [[window contentView] cr_setWantsLayer:YES];
windowShim_.reset(new BrowserWindowCocoa(browser, self));
// Set different minimum sizes on tabbed windows vs non-tabbed, e.g. popups.
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/fast_resize_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698