Title: [187334] branches/safari-601.1-branch/Source/WebCore
Revision
187334
Author
[email protected]
Date
2015-07-24 01:23:12 -0700 (Fri, 24 Jul 2015)

Log Message

Merge r187036. rdar://problem/21901881

Modified Paths

Diff

Modified: branches/safari-601.1-branch/Source/WebCore/ChangeLog (187333 => 187334)


--- branches/safari-601.1-branch/Source/WebCore/ChangeLog	2015-07-24 08:18:59 UTC (rev 187333)
+++ branches/safari-601.1-branch/Source/WebCore/ChangeLog	2015-07-24 08:23:12 UTC (rev 187334)
@@ -1,5 +1,22 @@
 2015-07-24  Matthew Hanson  <[email protected]>
 
+        Merge r187036. rdar://problem/21901881
+
+    2015-07-20  Jeremy Jones  <[email protected]>
+
+            Allow video to rotate when app doesnt allow rotation.
+            https://bugs.webkit.org/show_bug.cgi?id=147121
+
+            Reviewed by Jer Noble.
+
+            Set an SPI bool on the fullscreen video root view controller to allow it to override app rotation restrictions.
+            This allows video to be played in landscape in portrait only apps.
+
+            * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+            (WebVideoFullscreenInterfaceAVKit::setupFullscreen):
+
+2015-07-24  Matthew Hanson  <[email protected]>
+
         Merge r187274. rdar://problem/21905756
 
     2015-07-23  Timothy Horton  <[email protected]>

Modified: branches/safari-601.1-branch/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm (187333 => 187334)


--- branches/safari-601.1-branch/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm	2015-07-24 08:18:59 UTC (rev 187333)
+++ branches/safari-601.1-branch/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm	2015-07-24 08:23:12 UTC (rev 187334)
@@ -1022,6 +1022,10 @@
 - (BOOL)_isHostedInAnotherProcess;
 @end
 
+@interface UIViewController ()
+@property (nonatomic, assign, setter=_setIgnoreAppSupportedOrientations:) BOOL _ignoreAppSupportedOrientations;
+@end
+
 void WebVideoFullscreenInterfaceAVKit::setupFullscreen(UIView& videoView, const WebCore::IntRect& initialRect, UIView* parentView, HTMLMediaElementEnums::VideoFullscreenMode mode, bool allowsPictureInPicturePlayback)
 {
     ASSERT(mode != HTMLMediaElementEnums::VideoFullscreenModeNone);
@@ -1040,6 +1044,7 @@
         [m_window setBackgroundColor:[getUIColorClass() clearColor]];
         m_viewController = adoptNS([allocUIViewControllerInstance() init]);
         [[m_viewController view] setFrame:[m_window bounds]];
+        [m_viewController _setIgnoreAppSupportedOrientations:YES];
         [m_window setRootViewController:m_viewController.get()];
         [m_window makeKeyAndVisible];
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to