Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2332)

Unified Diff: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm

Issue 2824613002: Mac: Remove white CALayers (Closed)
Patch Set: Fix unit test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
index b85b75815391ca3da848969b4c4149a6116e30b2..65dbbcc9d6d8611ee95bf904db4c21aa0a340033 100644
--- a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
@@ -251,17 +251,6 @@ - (void)ensureContentsVisibleInSuperview:(NSView*)superview {
NSViewHeightSizable];
[contentsContainer setNeedsDisplay:YES];
-
- // Push the background color down to the RenderWidgetHostView, so that if
- // there is a flash between contents appearing, it will be the theme's color,
- // not white.
- SkColor skBackgroundColor = SK_ColorWHITE;
- const ThemeProvider* theme = [[[self view] window] themeProvider];
- if (theme)
- skBackgroundColor = theme->GetColor(ThemeProperties::COLOR_NTP_BACKGROUND);
- content::RenderWidgetHostView* rwhv = contents_->GetRenderWidgetHostView();
- if (rwhv)
- rwhv->SetBackgroundColor(skBackgroundColor);
}
- (void)updateFullscreenWidgetFrame {
« no previous file with comments | « chrome/browser/ui/cocoa/fast_resize_view.mm ('k') | content/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698