Remove unnecesary call to status bar SPI.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Aug 2017 07:36:50 +0000 (07:36 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Aug 2017 07:36:50 +0000 (07:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=175176
rdar://problem/20887306

Patch by Jeremy Jones <jeremyj@apple.com> on 2017-08-04
Reviewed by Darin Adler.

No new tests because no behavior change.

This removes an obsolete call to SPI.

* platform/ios/VideoFullscreenInterfaceAVKit.mm:
(VideoFullscreenInterfaceAVKit::cleanupFullscreen):

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

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

index 83c93e211cf27687efb58c758bbd98cb34d37ba6..8472110f06059b1cfdb7a6edbe8975c3fdf41f33 100644 (file)
@@ -1,3 +1,18 @@
+2017-08-04  Jeremy Jones  <jeremyj@apple.com>
+
+        Remove unnecesary call to status bar SPI.
+        https://bugs.webkit.org/show_bug.cgi?id=175176
+        rdar://problem/20887306
+
+        Reviewed by Darin Adler.
+
+        No new tests because no behavior change.
+
+        This removes an obsolete call to SPI.
+
+        * platform/ios/VideoFullscreenInterfaceAVKit.mm:
+        (VideoFullscreenInterfaceAVKit::cleanupFullscreen):
+
 2017-08-03  Zan Dobersek  <zdobersek@igalia.com>
 
         [GCrypt] Implement CryptoKeyEC PKCS#8 imports
 2017-08-03  Zan Dobersek  <zdobersek@igalia.com>
 
         [GCrypt] Implement CryptoKeyEC PKCS#8 imports
index c582582a94cf64fd63129d567a2bdaa39804fd68..1bb85209ce678a0987906f4581d83ff477bc6a88 100644 (file)
@@ -763,22 +763,12 @@ void VideoFullscreenInterfaceAVKit::exitFullscreen(const WebCore::IntRect& final
     };
 }
 
     };
 }
 
-@interface UIApplication ()
-- (void)_setStatusBarOrientation:(UIInterfaceOrientation)o;
-@end
-
-@interface UIWindow ()
-- (UIInterfaceOrientation)interfaceOrientation;
-@end
-
 void VideoFullscreenInterfaceAVKit::cleanupFullscreen()
 {
     LOG(Fullscreen, "VideoFullscreenInterfaceAVKit::cleanupFullscreen(%p)", this);
     if (m_window) {
         [m_window setHidden:YES];
         [m_window setRootViewController:nil];
 void VideoFullscreenInterfaceAVKit::cleanupFullscreen()
 {
     LOG(Fullscreen, "VideoFullscreenInterfaceAVKit::cleanupFullscreen(%p)", this);
     if (m_window) {
         [m_window setHidden:YES];
         [m_window setRootViewController:nil];
-        if (m_parentWindow)
-            [[getUIApplicationClass() sharedApplication] _setStatusBarOrientation:[m_parentWindow interfaceOrientation]];
     }
     
     [m_playerViewController setDelegate:nil];
     }
     
     [m_playerViewController setDelegate:nil];