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

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: 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..91cd0e8c3bafae3e2348e8ed0426cb33fb8d62c1 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -288,7 +288,7 @@ 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);
+ GetNewViewResizeParams(&params.initial_size);
Send(new ViewMsg_New(params));
@@ -1233,6 +1233,7 @@ void RenderViewHostImpl::OnBlur() {
}
gfx::Rect RenderViewHostImpl::GetRootWindowResizerRect() const {
+ if (!delegate_) return gfx::Rect();
piman 2014/10/29 18:42:57 In which case is that NULL? The 2 places that set
mkosiba (inactive) 2014/10/31 14:35:05 my bad, I got these mixed up with view_.
return delegate_->GetRootWindowResizerRect();
}

Powered by Google App Engine
This is Rietveld 408576698