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

Unified Diff: third_party/WebKit/Source/core/frame/FullscreenController.cpp

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Re-add feature flag Created 3 years, 6 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
Index: third_party/WebKit/Source/core/frame/FullscreenController.cpp
diff --git a/third_party/WebKit/Source/core/frame/FullscreenController.cpp b/third_party/WebKit/Source/core/frame/FullscreenController.cpp
index ce21bdb161d574109a03a120b6d4709a446d626c..546a2ecc5b9a0c4301de75831e2cb87efe1fd1e7 100644
--- a/third_party/WebKit/Source/core/frame/FullscreenController.cpp
+++ b/third_party/WebKit/Source/core/frame/FullscreenController.cpp
@@ -130,6 +130,7 @@ void FullscreenController::DidExitFullscreen() {
next_frame = next_frame->Tree().TraverseNext();
frame = next_frame;
}
+ web_view_base_->LayerTreeView()->SetIsFullscreen(false);
}
void FullscreenController::EnterFullscreen(LocalFrame& frame) {
@@ -253,6 +254,8 @@ void FullscreenController::UpdateSize() {
}
}
}
+ if (state_ == State::kFullscreen)
+ web_view_base_->LayerTreeView()->SetIsFullscreen(true);
}
void FullscreenController::DidUpdateLayout() {

Powered by Google App Engine
This is Rietveld 408576698