Index: Source/web/FullscreenController.cpp |
diff --git a/Source/web/FullscreenController.cpp b/Source/web/FullscreenController.cpp |
index 7b1ccd960727dceb1bac33fe023cfe477df894d1..f19822ed8af1d252161dd00de792fe763b9f5b48 100644 |
--- a/Source/web/FullscreenController.cpp |
+++ b/Source/web/FullscreenController.cpp |
@@ -118,7 +118,7 @@ void FullscreenController::willExitFullScreen() |
// When the client exits from full screen we have to call fullyExitFullscreen to notify |
// the document. While doing that, suppress notifications back to the client. |
m_isCancelingFullScreen = true; |
- fullscreen->fullyExitFullscreen(); |
+ Fullscreen::fullyExitFullscreen(*doc); |
m_isCancelingFullScreen = false; |
fullscreen->willExitFullScreenForElement(0); |
if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && m_webViewImpl->layerTreeView()) |