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]);
[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;
}