Unreviewed maccatalyst build fix; add ENABLE(FULLSCREEN) checks around calls to fullS...
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jun 2019 20:15:33 +0000 (20:15 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jun 2019 20:15:33 +0000 (20:15 +0000)
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _closeAllMediaPresentations]):

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

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

index 8965884..38dac50 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-28  Jer Noble  <jer.noble@apple.com>
+
+        Unreviewed maccatalyst build fix; add ENABLE(FULLSCREEN) checks around calls to fullScreenManager().
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _closeAllMediaPresentations]):
+
 2019-06-28  Tim Horton  <timothy_horton@apple.com>
 
         macCatalyst: Selected range sometimes wrong after autocorrection
index 1f0b641..3a19705 100644 (file)
@@ -4749,8 +4749,10 @@ FOR_EACH_PRIVATE_WKCONTENTVIEW_ACTION(FORWARD_ACTION_TO_WKCONTENTVIEW)
         });
     }
 
+#if ENABLE(FULLSCREEN_API)
     if (auto fullScreenManager = _page->fullScreenManager(); fullScreenManager && fullScreenManager->isFullScreen())
         fullScreenManager->close();
+#endif
 }
 
 - (void)_stopAllMediaPlayback