Unreviewed, attempt to fix iOS build.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Jul 2015 17:22:28 +0000 (17:22 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Jul 2015 17:22:28 +0000 (17:22 +0000)
* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
(WebVideoFullscreenInterfaceAVKit::setupFullscreen):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

index 06ecfda..d5506b5 100644 (file)
@@ -1,3 +1,10 @@
+2015-07-07  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, attempt to fix iOS build.
+
+        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+        (WebVideoFullscreenInterfaceAVKit::setupFullscreen):
+
 2015-07-07  Andreas Kling  <akling@apple.com>
 
         REGRESSION(r183706): HTMLImageElement sometimes fails to register as document named item.
index 02d6373..74b1c19 100644 (file)
@@ -929,7 +929,12 @@ void WebVideoFullscreenInterfaceAVKit::setupFullscreen(PlatformLayer& videoLayer
     if (m_videoFullscreenModel)
         m_videoFullscreenModel->setVideoLayerFrame(videoRect);
 
+    // This method has been deprecated so ignore the warning until we port our code to the new API.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     m_playerViewController = adoptNS([allocAVPlayerViewControllerInstance() initWithVideoLayer:m_videoLayerContainer.get()]);
+#pragma clang diagnostic pop
+
     [m_playerViewController setShowsPlaybackControls:NO];
     [m_playerViewController setPlayerController:(AVPlayerController *)m_playerController.get()];
     [m_playerViewController setDelegate:m_playerController.get()];