From 30850f491f6804dcb6b4739e09db581dcb4ed10b Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 9 Oct 2018 14:15:19 -0700 Subject: [PATCH] fix: [mac] restore SetBackgroundColor functionality --- atom/browser/native_window_mac.mm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index e4746d7462..907451024d 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -997,20 +997,15 @@ bool NativeWindowMac::IsKiosk() { } void NativeWindowMac::SetBackgroundColor(SkColor color) { - NOTIMPLEMENTED() << "TODO"; - /* base::ScopedCFTypeRef cgcolor( skia::CGColorCreateFromSkColor(color)); // views::Widget adds a layer for the content view. auto* bridge = views::NativeWidgetMac::GetBridgeForNativeWindow(window_); - NSView* compositor_superview = - static_cast(bridge) - ->AcceleratedWidgetGetNSView(); + auto* compositor_superview = bridge->ns_view(); [[compositor_superview layer] setBackgroundColor:cgcolor]; // When using WebContents as content view, the contentView also has layer. if ([[window_ contentView] wantsLayer]) [[[window_ contentView] layer] setBackgroundColor:cgcolor]; - */ } void NativeWindowMac::SetHasShadow(bool has_shadow) {