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

Issue 659093002: Pass the size to the RenderView on creation. (Closed)

Created:
6 years, 2 months ago by mkosiba (inactive)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, mkwst+moarreviews-ipc_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@java_enum
Project:
chromium
Visibility:
Public.

Description

Pass the size to the RenderView on creation. The size update races with the page load creating the opportunity for the page to observe the initial (0,0) renderer size. This patch addresses the issue by sending the initial size together with the RenderView creation request. BUG=424205 Committed: https://crrev.com/58fa72f0dcafa8250ed0e88a0a666624c31bcafa Cr-Commit-Position: refs/heads/master@{#303775}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : send all the size #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : add tests #

Patch Set 8 : rebase #

Total comments: 7

Patch Set 9 : #

Patch Set 10 : #

Total comments: 1

Patch Set 11 : fix autoresize for guestview/extensions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -124 lines) Patch
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/delegated_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +31 lines, -24 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +70 lines, -48 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 14 chunks +62 lines, -13 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +31 lines, -12 lines 0 comments Download
M content/public/test/render_view_test.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +23 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl_params.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl_params.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/test/data/web_view/apitest/main.js View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 36 (6 generated)
mkosiba (inactive)
PTAL
6 years, 2 months ago (2014-10-16 17:02:11 UTC) #2
mkosiba (inactive)
+Daniel for content/browser and content/public/test
6 years, 2 months ago (2014-10-16 17:06:12 UTC) #4
mkosiba (inactive)
ping?
6 years, 2 months ago (2014-10-17 09:04:40 UTC) #5
no sievers
So this essentially avoids a roundtrip for setting the size on a new view. Seems ...
6 years, 2 months ago (2014-10-17 19:01:17 UTC) #6
jamesr
What's the consequence of the bug? I don't see much in the crbug describing what ...
6 years, 2 months ago (2014-10-20 04:15:06 UTC) #7
mkosiba (inactive)
On 2014/10/20 04:15:06, jamesr wrote: > What's the consequence of the bug? I don't see ...
6 years, 2 months ago (2014-10-20 14:16:30 UTC) #8
jamesr
Right, but this has been the case since day 1. What I'm asking is what ...
6 years, 2 months ago (2014-10-20 17:22:11 UTC) #9
mkosiba (inactive)
On 2014/10/20 17:22:11, jamesr wrote: > Right, but this has been the case since day ...
6 years, 2 months ago (2014-10-20 17:30:30 UTC) #10
mkosiba (inactive)
On 2014/10/20 17:30:30, mkosiba wrote: > On 2014/10/20 17:22:11, jamesr wrote: > > Right, but ...
6 years, 2 months ago (2014-10-22 10:59:49 UTC) #11
jamesr
I think this is probably fine, but this part of the sequence is old and ...
6 years, 2 months ago (2014-10-23 00:12:34 UTC) #12
mkosiba (inactive)
On 2014/10/23 00:12:34, jamesr wrote: > I think this is probably fine, but this part ...
6 years, 2 months ago (2014-10-23 15:25:49 UTC) #13
mkosiba (inactive)
On 2014/10/23 15:25:49, mkosiba wrote: > On 2014/10/23 00:12:34, jamesr wrote: > > I think ...
6 years, 2 months ago (2014-10-23 15:31:08 UTC) #14
no sievers
+piman to double-check for AURA and Mac, since GetRequestedRendererSize() works different there. Also it would ...
6 years, 2 months ago (2014-10-23 17:55:33 UTC) #16
piman
On 2014/10/23 17:55:33, sievers wrote: > +piman to double-check for AURA and Mac, since GetRequestedRendererSize() ...
6 years, 2 months ago (2014-10-23 19:07:50 UTC) #17
mkosiba (inactive)
On 2014/10/23 19:07:50, piman (Very slow to review) wrote: > What I think I would ...
6 years, 1 month ago (2014-10-29 18:04:05 UTC) #18
piman
I like where this is going. Is there a way to extend RenderViewTest to test ...
6 years, 1 month ago (2014-10-29 18:42:57 UTC) #19
mkosiba (inactive)
ok, added some tests. https://codereview.chromium.org/659093002/diff/60001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/659093002/diff/60001/chrome/browser/ui/browser.cc#newcode1482 chrome/browser/ui/browser.cc:1482: if (!window_) return gfx::Rect(); On ...
6 years, 1 month ago (2014-10-31 14:35:06 UTC) #20
piman
Thanks for the tests. Just one thing and then we should be good. https://codereview.chromium.org/659093002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc File ...
6 years, 1 month ago (2014-10-31 20:35:52 UTC) #21
mkosiba (inactive)
ok, addressed feedback but it looks like some extension tests are failing on chromeos so ...
6 years, 1 month ago (2014-11-06 00:18:29 UTC) #22
piman
LGTM+nit https://codereview.chromium.org/659093002/diff/180001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/659093002/diff/180001/content/browser/renderer_host/render_view_host_impl.cc#newcode293 content/browser/renderer_host/render_view_host_impl.cc:293: if(!Send(new ViewMsg_New(params))) nit space between 'if' and '('
6 years, 1 month ago (2014-11-06 23:55:25 UTC) #23
mkosiba (inactive)
piman@ - fsamuel@ kindly provided a fix for the autosize code, could you take one ...
6 years, 1 month ago (2014-11-11 23:04:47 UTC) #25
piman
lgtm
6 years, 1 month ago (2014-11-11 23:22:05 UTC) #26
mkosiba (inactive)
sievers@, fsamuel@ - OWNERS stamps please?
6 years, 1 month ago (2014-11-11 23:29:57 UTC) #27
no sievers
you're covered for content/. i think you might need someone for extensions/ though.
6 years, 1 month ago (2014-11-11 23:32:14 UTC) #28
Fady Samuel
guest_view and web_view lgtm! :-)
6 years, 1 month ago (2014-11-11 23:32:20 UTC) #29
mkosiba (inactive)
+wfh@ for view_messages.h
6 years, 1 month ago (2014-11-11 23:45:44 UTC) #31
Will Harris
On 2014/11/11 23:45:44, mkosiba wrote: > +wfh@ for view_messages.h ipc lgtm
6 years, 1 month ago (2014-11-12 00:01:16 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659093002/200001
6 years, 1 month ago (2014-11-12 00:16:17 UTC) #34
commit-bot: I haz the power
Committed patchset #11 (id:200001)
6 years, 1 month ago (2014-11-12 01:21:45 UTC) #35
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 01:22:30 UTC) #36
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/58fa72f0dcafa8250ed0e88a0a666624c31bcafa
Cr-Commit-Position: refs/heads/master@{#303775}

Powered by Google App Engine
This is Rietveld 408576698