| 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 0b8f4a644042df265c63404533e0f0acd8135ec5..104ec82294be8a81a9d6e7c5d55067508e369d42 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1363,6 +1363,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();
|
| }
|
|
|
| @@ -1782,9 +1784,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() {
|
|
|