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

Unified Diff: third_party/WebKit/Source/web/FullscreenController.cpp

Issue 2750653002: [fullscreen] (not landed) Force a layout on exiting fullscreen. (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/FullscreenController.cpp
diff --git a/third_party/WebKit/Source/web/FullscreenController.cpp b/third_party/WebKit/Source/web/FullscreenController.cpp
index 4380a01fb2d69c41051ae38c536576db7c821aac..0b18ba9f89ed892b4dc55fa6450d6e01872bebb3 100644
--- a/third_party/WebKit/Source/web/FullscreenController.cpp
+++ b/third_party/WebKit/Source/web/FullscreenController.cpp
@@ -127,6 +127,10 @@ void FullscreenController::didExitFullscreen() {
// restore scroll offsets since content may not be overflowing in the same way
// until they are.
m_state = State::NeedsScrollAndScaleRestore;
+
+ // https://crbug.com/698315: Force a layout to avoid race with resize event
+ // caused by ViewMsg_Resize, which is sent when browser exits fullscreen mode.
+ m_webViewImpl->updateAllLifecyclePhases();
}
void FullscreenController::enterFullscreen(LocalFrame& frame) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698