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]);
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue