mac: No need to set wantsLayer, it is already done in brightray.

This commit is contained in:
Cheng Zhao 2014-07-31 18:02:12 +08:00
parent 6a5f732bba
commit 89f565906b

View file

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