]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: No need to set wantsLayer, it is already done in brightray.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 31 Jul 2014 10:02:12 +0000 (18:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 31 Jul 2014 10:02:12 +0000 (18:02 +0800)
atom/browser/native_window_mac.mm

index 919ffcf1a25cf584e5cc5f6231797b7415d8dadd..f2ff9b2235d8bd7755eba393ab1e47996185fff5 100644 (file)
@@ -557,8 +557,6 @@ void NativeWindowMac::InstallView() {
     base::scoped_nsobject<CALayer> layer([[CALayer alloc] init]);
     [layer setBackgroundColor:CGColorGetConstantColor(kCGColorWhite)];
     [view setLayer:layer];
-    [view setWantsLayer:YES];
-
     [view setFrame:[[window_ contentView] bounds]];
     [[window_ contentView] addSubview:view];
   } else {
@@ -582,8 +580,6 @@ void NativeWindowMac::UninstallView() {
 
 void NativeWindowMac::ClipWebView() {
   NSView* view = GetWebContents()->GetNativeView();
-
-  view.wantsLayer = YES;
   view.layer.masksToBounds = YES;
   view.layer.cornerRadius = kAtomWindowCornerRadius;
 }