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 {
void NativeWindowMac::ClipWebView() {
NSView* view = GetWebContents()->GetNativeView();
-
- view.wantsLayer = YES;
view.layer.masksToBounds = YES;
view.layer.cornerRadius = kAtomWindowCornerRadius;
}