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 0be391ed1f25a8d71bdba882b1e4aeb22a8d35aa..b49b3396fda66eaacb54672da74a93cf9c0f3469 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -1469,6 +1469,8 @@ void RenderViewHostImpl::EnableAutoResize(const gfx::Size& min_size, |
void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { |
SetShouldAutoResize(false); |
Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); |
+ if (!new_size.IsEmpty()) |
+ GetView()->SetSize(new_size); |
} |
void RenderViewHostImpl::CopyImageAt(int x, int y) { |