mac: No need to set wantsLayer, it is already done in brightray.
This commit is contained in:
parent
6a5f732bba
commit
89f565906b
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue