Index: Source/web/ChromeClientImpl.cpp |
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp |
index 637b399993e528252e21c266544d287a2be35077..5c630a0903726bb82827764b04596e0e665ea085 100644 |
--- a/Source/web/ChromeClientImpl.cpp |
+++ b/Source/web/ChromeClientImpl.cpp |
@@ -37,7 +37,7 @@ |
#include "core/accessibility/AXObject.h" |
#include "core/accessibility/AXObjectCache.h" |
#include "core/dom/Document.h" |
-#include "core/dom/DocumentFullscreen.h" |
+#include "core/dom/FullscreenElementStack.h" |
#include "core/dom/Node.h" |
#include "core/events/KeyboardEvent.h" |
#include "core/events/MouseEvent.h" |
@@ -224,7 +224,7 @@ Page* ChromeClientImpl::createWindow(LocalFrame* frame, const FrameLoadRequest& |
policy = getNavigationPolicy(); |
ASSERT(frame->document()); |
- DocumentFullscreen::webkitCancelFullScreen(*frame->document()); |
+ FullscreenElementStack::from(*frame->document()).fullyExitFullscreen(); |
WebViewImpl* newView = toWebViewImpl( |
m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), WrappedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shouldSendReferrer == NeverSendReferrer)); |