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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Clear thumbnail cache instead of hiding static layer. Break out results of changing fullscreen stat… 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 faa33269ffc265d517ad728c2e93afbdefbdb75e..8735f364ac8252d4d10378e0aafa76e9597ea1ef 100644
--- a/third_party/WebKit/Source/core/frame/FullscreenController.cpp
+++ b/third_party/WebKit/Source/core/frame/FullscreenController.cpp
@@ -78,6 +78,7 @@ void FullscreenController::DidEnterFullscreen() {
web_view_base_->SetVisualViewportOffset(FloatPoint());
state_ = State::kFullscreen;
+ web_view_base_->LayerTreeView()->SetIsFullscreen(true);
// Notify all local frames that we have entered fullscreen.
for (Frame* frame = web_view_base_->GetPage()->MainFrame(); frame;
@@ -128,6 +129,7 @@ void FullscreenController::DidExitFullscreen() {
// restore scroll offsets since content may not be overflowing in the same way
// until they are.
state_ = State::kNeedsScrollAndScaleRestore;
+ web_view_base_->LayerTreeView()->SetIsFullscreen(false);
}
void FullscreenController::EnterFullscreen(LocalFrame& frame) {

Powered by Google App Engine
This is Rietveld 408576698