Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(789)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1488653002: Fix scroll restoration when exiting fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 358754a6894b03d62c33345edbeb32d2c1b4d915..7f171140bc58846f93945d2cc45804254775a386 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1674,17 +1674,6 @@ void WebContentsImpl::ExitFullscreenMode() {
if (delegate_)
delegate_->ExitFullscreenModeForTab(this);
- // Ensure web contents exit fullscreen state by sending a resize message,
- // which includes the fullscreen state. This is required for the situation
- // of the browser moving the view into a fullscreen state "browser fullscreen"
- // and then the contents entering "tab fullscreen". Exiting the contents
- // "tab fullscreen" then won't have the side effect of the view resizing,
- // hence the explicit call here is required.
- if (RenderWidgetHostView* rwh_view = GetRenderWidgetHostView()) {
- if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost())
- render_widget_host->WasResized();
- }
-
FOR_EACH_OBSERVER(WebContentsObserver, observers_,
DidToggleFullscreenModeForTab(IsFullscreenForCurrentTab(
GetRenderViewHost()->GetWidget())));

Powered by Google App Engine
This is Rietveld 408576698