| Index: content/browser/renderer_host/render_widget_host_view_mac.mm
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
| index 2c45b7177fd7bebd6b60e9578ecdfd9f0b4552ae..dcec0bf55d51a16c2b4a77c4561bf9de8b79d562 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
| +++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
| @@ -415,6 +415,19 @@ bool RenderWidgetHostViewMac::DelegatedFrameHostIsVisible() const {
|
| return !render_widget_host_->is_hidden();
|
| }
|
|
|
| +SkColor RenderWidgetHostViewMac::DelegatedFrameHostGetGutterColor(
|
| + SkColor color) const {
|
| + // When making an element on the page fullscreen the element's background
|
| + // may not match the page's, so use black as the gutter color to avoid
|
| + // flashes of brighter colors during the transition.
|
| + if (render_widget_host_->delegate() &&
|
| + render_widget_host_->delegate()->IsFullscreenForCurrentTab(
|
| + render_widget_host_)) {
|
| + return SK_ColorBLACK;
|
| + }
|
| + return color;
|
| +}
|
| +
|
| gfx::Size RenderWidgetHostViewMac::DelegatedFrameHostDesiredSizeInDIP() const {
|
| return GetViewBounds().size();
|
| }
|
|
|