From: Cheng Zhao Date: Thu, 31 Jul 2014 10:02:12 +0000 (+0800) Subject: mac: No need to set wantsLayer, it is already done in brightray. X-Git-Tag: v0.15.1~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=89f565906bb98d0634d29aa28c56e0d68964c1af;p=electron.git mac: No need to set wantsLayer, it is already done in brightray. --- 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; }