From 89f565906bb98d0634d29aa28c56e0d68964c1af Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 31 Jul 2014 18:02:12 +0800 Subject: [PATCH] mac: No need to set wantsLayer, it is already done in brightray. --- atom/browser/native_window_mac.mm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 919ffcf1..f2ff9b22 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -557,8 +557,6 @@ void NativeWindowMac::InstallView() { base::scoped_nsobject 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; } -- 2.43.0