Pass the size to the RenderView on creation.
commit58fa72f0dcafa8250ed0e88a0a666624c31bcafa
authormkosiba <mkosiba@chromium.org>
Wed, 12 Nov 2014 01:21:36 +0000 (11 17:21 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 12 Nov 2014 01:22:00 +0000 (12 01:22 +0000)
tree84c88b845266dbfdba087d33925082de3475fb3c
parenta0aa60810717ba0c4f3626bd4f28ebd07e819c9b
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

Review URL: https://codereview.chromium.org/659093002

Cr-Commit-Position: refs/heads/master@{#303775}
17 files changed:
chrome/test/data/extensions/platform_apps/web_view/shim/main.js
content/browser/compositor/delegated_frame_host.cc
content/browser/renderer_host/render_view_host_impl.cc
content/browser/renderer_host/render_widget_host_impl.cc
content/browser/renderer_host/render_widget_host_impl.h
content/browser/renderer_host/render_widget_host_unittest.cc
content/common/view_messages.h
content/public/test/render_view_test.cc
content/public/test/render_view_test.h
content/renderer/render_thread_impl.cc
content/renderer/render_view_browsertest.cc
content/renderer/render_view_impl.cc
content/renderer/render_view_impl.h
content/renderer/render_view_impl_params.cc
content/renderer/render_view_impl_params.h
extensions/browser/guest_view/guest_view_base.cc
extensions/test/data/web_view/apitest/main.js