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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1369603003: Remove 2-stage RenderWidget initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_offscreen_contexts
Patch Set: rebase Created 5 years, 3 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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 13b18cea67ccc3850e4f4b10cd0bee918295a96f..aa3d4972a6d485bd25049b999fdfc5af973eb0d2 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -740,10 +740,8 @@ void RenderViewImpl::Initialize(const ViewMsg_New_Params& params,
// If this is a popup, we must wait for the CreatingNew_ACK message before
// completing initialization. Otherwise, we can finish it now.
- if (opener_id_ == MSG_ROUTING_NONE) {
+ if (opener_id_ == MSG_ROUTING_NONE)
did_show_ = true;
- CompleteInit();
- }
webview()->setDeviceScaleFactor(device_scale_factor_);
webview()->setDisplayMode(display_mode_);

Powered by Google App Engine
This is Rietveld 408576698