diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-22 23:53:25 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-22 23:53:25 +0000 |
commit | 88b795b46f0236976a6699f7af7dc1da1605b291 (patch) | |
tree | 6775521c0e71e4570a090b3c7b7e68d4f22b42ef /chrome/browser/tab_contents/web_contents.cc | |
parent | e5d8b05f5f57390eab6bea89a35c5dc011df113a (diff) | |
download | chromium_src-88b795b46f0236976a6699f7af7dc1da1605b291.zip chromium_src-88b795b46f0236976a6699f7af7dc1da1605b291.tar.gz chromium_src-88b795b46f0236976a6699f7af7dc1da1605b291.tar.bz2 |
Don't send resize messages until the renderer has been initialized.
[Retry of 14260 with fixed unit test.]
1) Moves renderer_initialized_ from RenderWidgetView into RenderWidgetHost (its parent). Should be identical semantics to before.
2) Test renderer_initialized_ in RWH::WasResized().
This also reverts r13725, which was another attempt at fixing this problem.
BUG=9830,10659
TEST=From the Linux start page, click a link then click back -- should not get a gray page. From Google reader, click a link (which spawns a new tab within the same process) -- should not get a gray page.
Review URL: http://codereview.chromium.org/93038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/web_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/web_contents.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc index 6236f6a..dcd566c 100644 --- a/chrome/browser/tab_contents/web_contents.cc +++ b/chrome/browser/tab_contents/web_contents.cc @@ -1559,7 +1559,7 @@ bool WebContents::CreateRenderViewForRenderManager( return false; // Now that the RenderView has been created, we need to tell it its size. - view_->SetChildSize(rwh_view); + rwh_view->SetSize(view_->GetContainerSize()); UpdateMaxPageIDIfNecessary(render_view_host->site_instance(), render_view_host); |