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

Issue 24101003: Make the RenderViewHostImpl update its visibility after a swap. (Closed)

Created:
7 years, 3 months ago by zturner
Modified:
7 years, 3 months ago
CC:
chromium-reviews, jbauman+watch_chromium.org, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org, rjkroege, Fady Samuel, Charlie Reis
Visibility:
Public.

Description

Make the RenderViewHostImpl update its visibility after a swap, and bring consistency across other platform specific implementations of Hide/Swap This is a contiuation of a previous review ( https://codereview.chromium.org/23866013/) which I've re-uploaded here since something happened to break the diffs in the previous one. BUG=286259 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224790

Patch Set 1 #

Patch Set 2 : Change DCHECKs to early-outs on NULL #

Total comments: 2

Patch Set 3 : Add a null check for the RootWindow in RWHVA #

Patch Set 4 : Add a null check on the RootWindow in RWHVA #

Patch Set 5 : Add null check around the compositor. #

Total comments: 2

Patch Set 6 : Don't show the new RWHV if WebContents is hidden. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -13 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 4 chunks +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 3 chunks +14 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
zturner
7 years, 3 months ago (2013-09-19 00:22:35 UTC) #1
jamesr
lgtm
7 years, 3 months ago (2013-09-19 01:21:47 UTC) #2
jamesr
On 2013/09/19 01:21:47, jamesr wrote: > lgtm (although I'm not an OWNER)
7 years, 3 months ago (2013-09-19 01:21:58 UTC) #3
piman
LGTM, but you accidentally a word in the issue subject.
7 years, 3 months ago (2013-09-19 02:26:51 UTC) #4
zturner1
Looks like DCHECK() on the host_ isn't the right thing to do, since all the ...
7 years, 3 months ago (2013-09-19 03:43:50 UTC) #5
zturner
7 years, 3 months ago (2013-09-19 18:16:07 UTC) #6
no sievers
https://codereview.chromium.org/24101003/diff/11001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/24101003/diff/11001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode964 content/browser/renderer_host/render_widget_host_view_aura.cc:964: WasShown(); I thought this somehow happened already when I ...
7 years, 3 months ago (2013-09-19 19:49:08 UTC) #7
no sievers
Also what happens if you start the navigation and then the application hides the tab: ...
7 years, 3 months ago (2013-09-19 19:51:31 UTC) #8
jamesr
On 2013/09/19 19:51:31, sievers wrote: > Also what happens if you start the navigation and ...
7 years, 3 months ago (2013-09-19 20:32:14 UTC) #9
zturner
https://codereview.chromium.org/24101003/diff/11001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/24101003/diff/11001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode964 content/browser/renderer_host/render_widget_host_view_aura.cc:964: WasShown(); On 2013/09/19 19:49:08, sievers wrote: > I thought ...
7 years, 3 months ago (2013-09-19 20:46:45 UTC) #10
no sievers
On 2013/09/19 20:32:14, jamesr wrote: > On 2013/09/19 19:51:31, sievers wrote: > > Also what ...
7 years, 3 months ago (2013-09-19 20:48:57 UTC) #11
no sievers
On 2013/09/19 20:46:45, zturner wrote: > https://codereview.chromium.org/24101003/diff/11001/content/browser/renderer_host/render_widget_host_view_aura.cc > File content/browser/renderer_host/render_widget_host_view_aura.cc (right): > > https://codereview.chromium.org/24101003/diff/11001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode964 > ...
7 years, 3 months ago (2013-09-19 20:51:01 UTC) #12
cpu_(ooo_6.6-7.5)
reviewer folks, how are we feeling about this change? we got little time until branch. ...
7 years, 3 months ago (2013-09-20 15:44:06 UTC) #13
piman
https://codereview.chromium.org/24101003/diff/31001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/24101003/diff/31001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode202 content/browser/renderer_host/render_widget_host_view_android.cc:202: if (!host_ || !host_->is_hidden()) host_ is only reset right ...
7 years, 3 months ago (2013-09-20 16:51:29 UTC) #14
no sievers
I'm still wondering about the case described in #8. Unless I'm missing something there are ...
7 years, 3 months ago (2013-09-20 17:24:43 UTC) #15
zturner
On 2013/09/20 17:24:43, sievers wrote: > I'm still wondering about the case described in #8. ...
7 years, 3 months ago (2013-09-20 18:23:23 UTC) #16
no sievers
On 2013/09/20 18:23:23, zturner wrote: > On 2013/09/20 17:24:43, sievers wrote: > > I'm still ...
7 years, 3 months ago (2013-09-20 18:26:09 UTC) #17
no sievers
On 2013/09/20 18:26:09, sievers wrote: > On 2013/09/20 18:23:23, zturner wrote: > > On 2013/09/20 ...
7 years, 3 months ago (2013-09-20 18:27:07 UTC) #18
jamesr
On 2013/09/20 16:51:29, piman wrote: > https://codereview.chromium.org/24101003/diff/31001/content/browser/renderer_host/render_widget_host_view_android.cc > File content/browser/renderer_host/render_widget_host_view_android.cc (right): > > https://codereview.chromium.org/24101003/diff/31001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode202 > ...
7 years, 3 months ago (2013-09-20 18:28:04 UTC) #19
jamesr
On 2013/09/20 18:27:07, sievers wrote: > > Had a quick chat with James and we ...
7 years, 3 months ago (2013-09-20 18:28:55 UTC) #20
piman
On Fri, Sep 20, 2013 at 11:28 AM, <jamesr@chromium.org> wrote: > On 2013/09/20 16:51:29, piman ...
7 years, 3 months ago (2013-09-20 18:38:21 UTC) #21
jamesr
OK, sounds like all the NULL checks in RWHVAura should go away.
7 years, 3 months ago (2013-09-20 18:42:10 UTC) #22
zturner
On 2013/09/20 18:42:10, jamesr wrote: > OK, sounds like all the NULL checks in RWHVAura ...
7 years, 3 months ago (2013-09-20 19:17:59 UTC) #23
zturner
On 2013/09/20 19:17:59, zturner wrote: > On 2013/09/20 18:42:10, jamesr wrote: > > OK, sounds ...
7 years, 3 months ago (2013-09-20 19:26:51 UTC) #24
zturner
On 2013/09/20 19:26:51, zturner wrote: > On 2013/09/20 19:17:59, zturner wrote: > > On 2013/09/20 ...
7 years, 3 months ago (2013-09-20 19:29:34 UTC) #25
zturner
Check whether the web contents are hidden before showing the view, and remove the null ...
7 years, 3 months ago (2013-09-20 22:14:17 UTC) #26
jamesr
lgtm - afaik this fixes both problems
7 years, 3 months ago (2013-09-20 22:16:55 UTC) #27
no sievers
On 2013/09/20 22:14:17, zturner wrote: > Check whether the web contents are hidden before showing ...
7 years, 3 months ago (2013-09-20 22:18:38 UTC) #28
piman
LGTM, tests would be nice. For Aura we can likely unit test (see content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ) ...
7 years, 3 months ago (2013-09-20 22:27:28 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/24101003/2001
7 years, 3 months ago (2013-09-23 18:03:18 UTC) #30
commit-bot: I haz the power
7 years, 3 months ago (2013-09-23 21:09:35 UTC) #31
Message was sent while issue was closed.
Change committed as 224790

Powered by Google App Engine
This is Rietveld 408576698