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 c0d5ec4b5b97e793509a5662d21cebcae86047e6..c49ecfa5c31c4117f0a2c2699cd2afb5c1a64546 100644 |
--- a/third_party/WebKit/Source/web/FullscreenController.cpp |
+++ b/third_party/WebKit/Source/web/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) { |