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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 659093002: Pass the size to the RenderView on creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java_enum
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index f09be50cc455cfccd7b1edc9764228c44469c2f2..51ab2ac27d0dc60e59b135dc36bfa67c1bbb8dc6 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -288,9 +288,10 @@ bool RenderViewHostImpl::CreateRenderView(
params.never_visible = delegate_->IsNeverVisible();
params.window_was_created_with_opener = window_was_created_with_opener;
params.next_page_id = next_page_id;
- GetWebScreenInfo(&params.screen_info);
+ GetResizeParams(&params.initial_size);
Send(new ViewMsg_New(params));
mkosiba (inactive) 2014/10/31 14:35:06 We check if sending a resize succeeded but not her
piman 2014/10/31 20:35:52 Sure, we can. Note that since it's an async messag
mkosiba (inactive) 2014/11/06 00:18:29 Done.
+ SetInitialRenderSizeParams(params.initial_size);
// If it's enabled, tell the renderer to set up the Javascript bindings for
// sending messages back to the browser.

Powered by Google App Engine
This is Rietveld 408576698