Index: content/browser/tab_contents/tab_contents.cc |
=================================================================== |
--- content/browser/tab_contents/tab_contents.cc (revision 83102) |
+++ content/browser/tab_contents/tab_contents.cc (working copy) |
@@ -2283,12 +2283,12 @@ |
RenderViewHost* render_view_host) { |
RenderWidgetHostView* rwh_view = view_->CreateViewForWidget(render_view_host); |
+ // Now that the RenderView has been created, we need to tell it its size. |
+ rwh_view->SetSize(view_->GetContainerSize()); |
apatrick_chromium
2011/04/27 18:34:34
CreateRenderView calls GetCompositing, which assum
|
+ |
if (!render_view_host->CreateRenderView(string16())) |
return false; |
- // Now that the RenderView has been created, we need to tell it its size. |
- rwh_view->SetSize(view_->GetContainerSize()); |
- |
UpdateMaxPageIDIfNecessary(render_view_host->site_instance(), |
render_view_host); |
return true; |