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

Issue 1943183002: Transfer theme & page background colors between changes of RWHV. (Closed)

Created:
4 years, 7 months ago by chrishtr
Modified:
4 years ago
Reviewers:
sadrul, no sievers, sky
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, nona+watch_chromium.org, piman+watch_chromium.org, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, tfarina, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@noflash
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transfer theme & page background colors between changes of RWHV. When transitioning to a new RenderWidgetHostView, copy the current background color of the previous one. When putting up a frame in an active RenderWidgetHostView, set the background color to the background reported by the renderer process's compositor. This allows us to transition between web pages which have background colors A and B without a flash of white (or the theme color, which may be neither A nor B). BUG=470669

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 1 chunk +9 lines, -0 lines 1 comment Download
M content/public/browser/render_widget_host_view.h View 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (8 generated)
chrishtr
4 years, 7 months ago (2016-05-03 04:18:18 UTC) #3
chrishtr
4 years, 7 months ago (2016-05-04 18:45:35 UTC) #5
sky
https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc File chrome/browser/ui/views/frame/contents_web_view.cc (right): https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc#newcode140 chrome/browser/ui/views/frame/contents_web_view.cc:140: if (old_host && new_host) If this is the right ...
4 years, 7 months ago (2016-05-04 20:39:09 UTC) #6
chrishtr
https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc File chrome/browser/ui/views/frame/contents_web_view.cc (right): https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc#newcode140 chrome/browser/ui/views/frame/contents_web_view.cc:140: if (old_host && new_host) On 2016/05/04 at 20:39:09, sky ...
4 years, 7 months ago (2016-05-04 21:10:19 UTC) #7
sky
https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc File chrome/browser/ui/views/frame/contents_web_view.cc (right): https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc#newcode140 chrome/browser/ui/views/frame/contents_web_view.cc:140: if (old_host && new_host) On 2016/05/04 21:10:18, chrishtr wrote: ...
4 years, 7 months ago (2016-05-04 21:48:06 UTC) #8
chrishtr
https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc File chrome/browser/ui/views/frame/contents_web_view.cc (right): https://codereview.chromium.org/1943183002/diff/40001/chrome/browser/ui/views/frame/contents_web_view.cc#newcode140 chrome/browser/ui/views/frame/contents_web_view.cc:140: if (old_host && new_host) On 2016/05/04 at 21:48:06, sky ...
4 years, 7 months ago (2016-05-04 23:07:16 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1943183002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1943183002/60001
4 years, 7 months ago (2016-05-04 23:07:41 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/155591)
4 years, 7 months ago (2016-05-04 23:31:05 UTC) #13
sky
This is what I was asking. I'm not an owner of content though, so you'll ...
4 years, 7 months ago (2016-05-05 15:28:18 UTC) #14
chrishtr
4 years, 7 months ago (2016-05-05 15:33:51 UTC) #16
no sievers
4 years, 7 months ago (2016-05-17 18:05:43 UTC) #17
https://codereview.chromium.org/1943183002/diff/60001/content/browser/web_con...
File content/browser/web_contents/web_contents_impl.cc (right):

https://codereview.chromium.org/1943183002/diff/60001/content/browser/web_con...
content/browser/web_contents/web_contents_impl.cc:3919:
old_host->GetView()->background_color());
You said this doesn't work reliably. Does it work better if you set the color
from RenderFrameHostManager::Navigate() where we call
delegate_->CreateRenderViewForRenderManager()?

The other way to make this a bit more robust would be to make the
background_color a property of the WebContentsView and then
WebContentsView::CreateViewForWidget() could set the right background color
immediately.

Powered by Google App Engine
This is Rietveld 408576698