Unreviewed build fix attempt after r246928.
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jun 2019 23:35:44 +0000 (23:35 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jun 2019 23:35:44 +0000 (23:35 +0000)
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _closeAllMediaPresentations]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246947 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

index 5fa74c4..8ead54f 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-28  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Unreviewed build fix attempt after r246928.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _closeAllMediaPresentations]):
+
 2019-06-28  Youenn Fablet  <youenn@apple.com>
 
         Protect NetworkProcess::m_swServers from bad session IDs
index a2d2dfe..921fb01 100644 (file)
@@ -4743,13 +4743,13 @@ FOR_EACH_PRIVATE_WKCONTENTVIEW_ACTION(FORWARD_ACTION_TO_WKCONTENTVIEW)
 
 - (void)_closeAllMediaPresentations
 {
+#if ENABLE(FULLSCREEN_API)
     if (auto videoFullscreenManager = _page->videoFullscreenManager()) {
         videoFullscreenManager->forEachSession([] (auto& model, auto& interface) {
             model.requestFullscreenMode(WebCore::HTMLMediaElementEnums::VideoFullscreenModeNone);
         });
     }
 
-#if ENABLE(FULLSCREEN_API)
     if (auto fullScreenManager = _page->fullScreenManager(); fullScreenManager && fullScreenManager->isFullScreen())
         fullScreenManager->close();
 #endif