summaryrefslogtreecommitdiffstats
path: root/chromecast
diff options
context:
space:
mode:
authorlfg <lfg@chromium.org>2016-02-26 11:06:52 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-26 19:08:08 +0000
commitcaab514ea9a212c7a0cbdc6a001a86736451679f (patch)
tree62859aa30f15ff49586f1bf8fb616f85cdf4da45 /chromecast
parentf811720b434bea702c04c0f6d3a2664b31f52300 (diff)
downloadchromium_src-caab514ea9a212c7a0cbdc6a001a86736451679f.zip
chromium_src-caab514ea9a212c7a0cbdc6a001a86736451679f.tar.gz
chromium_src-caab514ea9a212c7a0cbdc6a001a86736451679f.tar.bz2
Sets a transparent background for out-of-process subframes
by default. This CL moves background color from WebView to WebFrameWidget, which allows for setting the background color independently per local root. WebViewImpl still implements background color for the main frame, but it now goes through a WebViewFrameWidget interface. BUG=515625 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1565893004 Cr-Commit-Position: refs/heads/master@{#377937}
Diffstat (limited to 'chromecast')
-rw-r--r--chromecast/renderer/cast_content_renderer_client.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromecast/renderer/cast_content_renderer_client.cc b/chromecast/renderer/cast_content_renderer_client.cc
index 6de24ec..f6b7a77 100644
--- a/chromecast/renderer/cast_content_renderer_client.cc
+++ b/chromecast/renderer/cast_content_renderer_client.cc
@@ -27,6 +27,7 @@
#include "content/public/renderer/render_view.h"
#include "content/public/renderer/render_view_observer.h"
#include "third_party/WebKit/public/platform/WebColor.h"
+#include "third_party/WebKit/public/web/WebFrameWidget.h"
#include "third_party/WebKit/public/web/WebSettings.h"
#include "third_party/WebKit/public/web/WebView.h"
@@ -148,7 +149,8 @@ void CastContentRendererClient::RenderViewCreated(
content::RenderView* render_view) {
blink::WebView* webview = render_view->GetWebView();
if (webview) {
- webview->setBaseBackgroundColor(kColorBlack);
+ blink::WebFrameWidget* web_frame_widget = render_view->GetWebFrameWidget();
+ web_frame_widget->setBaseBackgroundColor(kColorBlack);
// The following settings express consistent behaviors across Cast
// embedders, though Android has enabled by default for mobile browsers.