Index: chrome/browser/ui/fullscreen/fullscreen_controller.cc |
diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller.cc b/chrome/browser/ui/fullscreen/fullscreen_controller.cc |
index 712a1fad3a4ca2bc695ca55b6ef7fd108165a207..02bb476c2596767cf0bcfac207f1be15b1007a2a 100644 |
--- a/chrome/browser/ui/fullscreen/fullscreen_controller.cc |
+++ b/chrome/browser/ui/fullscreen/fullscreen_controller.cc |
@@ -28,6 +28,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_view.h" |
#include "extensions/common/extension.h" |
+#include "ui/gfx/layout_util.h" |
#if defined(OS_MACOSX) |
#include "base/mac/mac_util.h" |
@@ -312,7 +313,7 @@ void FullscreenController::OnTabDetachedFromView(WebContents* old_contents) { |
old_contents->GetFullscreenRenderWidgetHostView(); |
if (current_fs_view) |
current_fs_view->SetSize(old_contents->GetPreferredSize()); |
- old_contents->GetView()->SizeContents(old_contents->GetPreferredSize()); |
+ gfx::ResizeWebContents(old_contents, old_contents->GetPreferredSize()); |
} |
void FullscreenController::OnTabClosing(WebContents* web_contents) { |