Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index c03922caf383c0d5a2ab84d3457a1d6476081135..4617f1931e14f4b54f647bcae900dd07032b1a65 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -5541,7 +5541,7 @@ TEST_F(WebFrameTest, FullscreenLayerNonScrollable) |
Document* document = toWebLocalFrameImpl(webViewImpl->mainFrame())->frame()->document(); |
blink::UserGestureIndicator gesture(blink::DefinitelyProcessingUserGesture); |
Element* divFullscreen = document->getElementById("div1"); |
- divFullscreen->webkitRequestFullscreen(); |
+ FullscreenElementStack::from(*document).requestFullscreen(*divFullscreen, FullscreenElementStack::PrefixedRequest); |
webViewImpl->willEnterFullScreen(); |
webViewImpl->didEnterFullScreen(); |
webViewImpl->layout(); |
@@ -5573,7 +5573,7 @@ TEST_F(WebFrameTest, FullscreenMainFrameScrollable) |
Document* document = toWebLocalFrameImpl(webViewImpl->mainFrame())->frame()->document(); |
blink::UserGestureIndicator gesture(blink::DefinitelyProcessingUserGesture); |
- document->documentElement()->webkitRequestFullscreen(); |
+ FullscreenElementStack::from(*document).requestFullscreen(*document->documentElement(), FullscreenElementStack::PrefixedRequest); |
webViewImpl->willEnterFullScreen(); |
webViewImpl->didEnterFullScreen(); |
webViewImpl->layout(); |