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 0d8f0e08de498088b5d9d599eca3e31fa37d6755..2c3650f1f4e0e55d207d17f104ba303dc6b7d659 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -1361,6 +1361,8 @@ void RenderViewHostImpl::OnContextMenu(const ContextMenuParams& params) { |
void RenderViewHostImpl::OnToggleFullscreen(bool enter_fullscreen) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
delegate_->ToggleFullscreenMode(enter_fullscreen); |
+ // We need to notify the contents that its fullscreen state has changed. This |
+ // is done as part of the resize message. |
WasResized(); |
} |
@@ -1781,9 +1783,8 @@ void RenderViewHostImpl::SetAltErrorPageURL(const GURL& url) { |
void RenderViewHostImpl::ExitFullscreen() { |
RejectMouseLockOrUnlockIfNecessary(); |
- // We need to notify the contents that its fullscreen state has changed. This |
- // is done as part of the resize message. |
- WasResized(); |
+ // Notify delegate_ and renderer of fullscreen state change. |
+ OnToggleFullscreen(false); |
} |
WebPreferences RenderViewHostImpl::GetWebkitPreferences() { |