Changeset 245000 in webkit
- Timestamp:
- May 6, 2019 8:51:58 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r244998 r245000 1 2019-05-06 James Savage <james.savage@apple.com> 2 3 Improve coordination for creating UIWindow instances. 4 https://bugs.webkit.org/show_bug.cgi?id=197578. 5 <rdar://problem/50456965>. 6 7 Reviewed by Wenson Hsieh. 8 9 * platform/ios/VideoFullscreenInterfaceAVKit.mm: 10 (makeWindowFromView): Pull out window creation. 11 (VideoFullscreenInterfaceAVKit::doSetup): Call new helper function. 12 1 13 2019-05-06 Tim Horton <timothy_horton@apple.com> 2 14 -
trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm
r244704 r245000 1175 1175 } 1176 1176 1177 #if USE(APPLE_INTERNAL_SDK) 1178 #import <WebKitAdditions/VideoFullscreenInterfaceAVKitAdditions.mm> 1179 #else 1180 static RetainPtr<UIWindow> makeWindowFromView(UIView *) 1181 { 1182 return adoptNS([PAL::allocUIWindowInstance() initWithFrame:[[PAL::getUIScreenClass() mainScreen] bounds]]); 1183 } 1184 #endif 1185 1177 1186 void VideoFullscreenInterfaceAVKit::doSetup() 1178 1187 { … … 1197 1206 #if !PLATFORM(WATCHOS) 1198 1207 if (![[m_parentView window] _isHostedInAnotherProcess] && !m_window) { 1199 if (!m_window) 1200 m_window = adoptNS([PAL::allocUIWindowInstance() initWithFrame:[[PAL::getUIScreenClass() mainScreen] bounds]]); 1208 m_window = makeWindowFromView(m_parentView.get()); 1201 1209 [m_window setBackgroundColor:clearUIColor()]; 1202 1210 if (!m_viewController) -
trunk/Source/WebKit/ChangeLog
r244998 r245000 1 2019-05-06 James Savage <james.savage@apple.com> 2 3 Improve coordination for creating UIWindow instances. 4 https://bugs.webkit.org/show_bug.cgi?id=197578. 5 <rdar://problem/50456965>. 6 7 Reviewed by Wenson Hsieh. 8 9 * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: 10 (makeWindowFromView): Pull out window creation. 11 (-[WKFullScreenWindowController enterFullScreen]): Call new helper function. 12 1 13 2019-05-06 Tim Horton <timothy_horton@apple.com> 2 14 -
trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm
r244955 r245000 490 490 #pragma mark External Interface 491 491 492 #if USE(APPLE_INTERNAL_SDK) 493 #import <WebKitAdditions/WKFullScreenWindowControllerIOSAdditions.mm> 494 #else 495 static RetainPtr<UIWindow> makeWindowFromView(UIView *) 496 { 497 return adoptNS([[UIWindow alloc] init]); 498 } 499 #endif 500 492 501 - (void)enterFullScreen 493 502 { … … 505 514 _fullScreenState = WebKit::WaitingToEnterFullScreen; 506 515 507 _window = adoptNS([[UIWindow alloc] init]);516 _window = makeWindowFromView(webView.get()); 508 517 [_window setBackgroundColor:[UIColor clearColor]]; 509 518 [_window setWindowLevel:UIWindowLevelNormal - 1];
Note: See TracChangeset
for help on using the changeset viewer.