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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2155273002: Make it possible for downstream projects to easily set the default fill color Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac fixup Created 4 years, 5 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 6fdcf891b8f50706eee422addcfa1bb682ffe518..7981b9254389a6165e6f67c7bca1f2937104f643 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -494,9 +494,9 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host,
RenderViewHost* rvh = RenderViewHost::From(host_);
if (rvh) {
- // TODO(mostynb): actually use prefs. Landing this as a separate CL
- // first to rebaseline some unreliable layout tests.
- ignore_result(rvh->GetWebkitPreferences());
+ WebPreferences prefs = rvh->GetWebkitPreferences();
+ background_color_ = prefs.default_background_color;
+ host_->SetBackgroundOpaque(GetBackgroundOpaque());
chrishtr 2016/07/29 18:15:41 Why do you also need to set whether it's opaque? I
}
}
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698