mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-03 04:27:43 +01:00
Mac: Fix background color (issue #1161)
This commit is contained in:
parent
dc3aae19e8
commit
74dfd9ad81
@ -209,4 +209,10 @@ patches = [
|
||||
'name': 'widevine_cdm_1631',
|
||||
'path': '../media/cdm/stub/',
|
||||
},
|
||||
{
|
||||
# Fix background color on Mac.
|
||||
# https://codereview.chromium.org/1070383005 (reverted)
|
||||
'name': 'render_widget_host_1070383005',
|
||||
'path': '../content/browser/renderer_host/',
|
||||
},
|
||||
]
|
||||
|
14
patch/patches/render_widget_host_1070383005.patch
Normal file
14
patch/patches/render_widget_host_1070383005.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git render_widget_host_view_mac.mm render_widget_host_view_mac.mm
|
||||
index 66f1c31..0eac488 100644
|
||||
--- render_widget_host_view_mac.mm
|
||||
+++ render_widget_host_view_mac.mm
|
||||
@@ -582,9 +582,6 @@ RenderWidgetHostViewMac::RenderWidgetHostViewMac(RenderWidgetHost* widget,
|
||||
// Paint this view host with |background_color_| when there is no content
|
||||
// ready to draw.
|
||||
background_layer_.reset([[CALayer alloc] init]);
|
||||
- // Set the default color to be white. This is the wrong thing to do, but many
|
||||
- // UI components expect this view to be opaque.
|
||||
- [background_layer_ setBackgroundColor:CGColorGetConstantColor(kCGColorWhite)];
|
||||
[cocoa_view_ setLayer:background_layer_];
|
||||
[cocoa_view_ setWantsLayer:YES];
|
||||
|
Loading…
x
Reference in New Issue
Block a user