| 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 5fde5b9a7d258c6e36bcefcf89a1672ab5098f54..6bc6bde126c5f73dd6d7fae6469c7653c700bf40 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| @@ -255,7 +255,10 @@ using content::WebContents;
|
| // 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] setWantsLayer:YES];
|
| + if ([self wantsRootViewToBeLayerBacked])
|
| + [[[window contentView] superview] setWantsLayer:YES];
|
| + else
|
| + [[window contentView] setWantsLayer:YES];
|
| windowShim_.reset(new BrowserWindowCocoa(browser, self));
|
|
|
| // Set different minimum sizes on tabbed windows vs non-tabbed, e.g. popups.
|
|
|