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

Unified Diff: content/browser/frame_host/render_frame_host_manager.cc

Issue 2415973002: Do not hide the old RenderWidgetHostView when commiting a navigation. (Closed)
Patch Set: add test Created 4 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
« no previous file with comments | « no previous file | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 1a8acb96ba0062eb79562cb4dce53ce03442f662..5653edfd699471ac1b26b453f068413c6a656f86 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -2155,14 +2155,6 @@ void RenderFrameHostManager::CommitPending() {
render_frame_host_->render_view_host());
}
- // For top-level frames, also hide the old RenderViewHost's view.
- // TODO(creis): As long as show/hide are on RVH, we don't want to hide on
- // subframe navigations or we will interfere with the top-level frame.
- if (is_main_frame &&
- old_render_frame_host->render_view_host()->GetWidget()->GetView()) {
- old_render_frame_host->render_view_host()->GetWidget()->GetView()->Hide();
- }
-
// Make sure the size is up to date. (Fix for bug 1079768.)
delegate_->UpdateRenderViewSizeForRenderManager();
« no previous file with comments | « no previous file | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698