Chromium Code Reviews| 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 4a8e86b36ef797495dfc657c799570b1bfd82d86..3a7bdce6f06e4c3fd2cb05fa612107225934d69c 100644 |
| --- a/content/browser/renderer_host/render_view_host_impl.cc |
| +++ b/content/browser/renderer_host/render_view_host_impl.cc |
| @@ -979,7 +979,11 @@ void RenderViewHostImpl::OnShowView(int route_id, |
| void RenderViewHostImpl::OnShowWidget(int route_id, |
| const gfx::Rect& initial_rect) { |
| - if (is_active_) |
| + if (delegate_->GetFrameTree() |
| + ->root() |
| + ->render_manager() |
| + ->current_host() |
| + ->is_active()) |
|
nasko
2016/03/17 17:25:45
Is this the correct check to make here? I think th
kenrb
2016/03/17 18:59:48
If the is_active_ bit is never false on a top-leve
nasko
2016/03/17 19:10:46
Oops, I've read it current_frame_host. I still thi
kenrb
2016/03/17 20:00:06
Possibly it could be used for some kind of UI redr
|
| delegate_->ShowCreatedWidget(route_id, initial_rect); |
| Send(new ViewMsg_Move_ACK(route_id)); |
| } |