Changeset 200206 in webkit
- Timestamp:
- Apr 28, 2016, 12:58:04 PM (9 years ago)
- Location:
- tags/Safari-602.1.30/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/Safari-602.1.30/Source/WebCore/ChangeLog
r200170 r200206 1 2016-04-28 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r200205. 4 5 2016-04-28 Dan Bernstein <mitz@apple.com> 6 7 <rdar://problem/25986324> WebKit build broken with error: undeclared selector 'childViewControllerForWhitePointAdaptivityStyle' 8 9 Fixed the build by removing use of API that no longer does anything. 10 11 * platform/ios/WebVideoFullscreenInterfaceAVKit.mm: 12 (WebVideoFullscreenInterfaceAVKit::setupFullscreen): Revert to using a plain UIViewController. 13 (createFullScreenVideoRootViewControllerClass): Deleted. 14 (allocWebFullScreenVideoRootViewControllerInstance): Deleted. 15 1 16 2016-04-27 Babak Shafiei <bshafiei@apple.com> 2 17 -
tags/Safari-602.1.30/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm
r199960 r200206 82 82 #endif 83 83 84 @interface WebFullScreenVideoRootViewController : UIViewController85 - (instancetype)initWithSourceWindow:(UIWindow *)sourceWindow;86 @end87 88 static Class createFullScreenVideoRootViewControllerClass()89 {90 Class newClass = objc_allocateClassPair(getUIViewControllerClass(), "WebFullScreenVideoRootViewController", 0);91 92 class_addIvar(newClass, "_sourceWindow", sizeof(UIWindow *), log2(alignof(UIWindow *)), @encode(UIWindow *));93 Ivar sourceWindowIvar = class_getInstanceVariable(newClass, "_sourceWindow");94 95 class_addMethod(newClass, @selector(initWithSourceWindow:), imp_implementationWithBlock(^(id self, UIWindow *sourceWindow){96 self = [self init];97 object_setIvar(self, sourceWindowIvar, [sourceWindow retain]);98 return self;99 }), "@@:@");100 101 class_addMethod(newClass, @selector(dealloc), imp_implementationWithBlock(^(id self){102 [object_getIvar(self, sourceWindowIvar) release];103 objc_super superClass { self, getUIViewControllerClass() };104 ((void (*)(objc_super*, SEL))objc_msgSendSuper)(&superClass, @selector(dealloc));105 }), "v@:");106 107 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000108 class_addMethod(newClass, @selector(childViewControllerForWhitePointAdaptivityStyle), imp_implementationWithBlock(^(id self){109 UIWindow *sourceWindow = object_getIvar(self, sourceWindowIvar);110 return sourceWindow.rootViewController;111 }), "@@:");112 #endif113 114 objc_registerClassPair(newClass);115 return newClass;116 }117 118 static WebFullScreenVideoRootViewController *allocWebFullScreenVideoRootViewControllerInstance()119 {120 static Class fullScreenVideoRootViewControllerClass = createFullScreenVideoRootViewControllerClass();121 return [fullScreenVideoRootViewControllerClass alloc];122 }123 124 84 static const double DefaultWatchdogTimerInterval = 1; 125 85 … … 683 643 [m_window setBackgroundColor:[getUIColorClass() clearColor]]; 684 644 if (!m_viewController) 685 m_viewController = adoptNS([alloc WebFullScreenVideoRootViewControllerInstance() initWithSourceWindow:[parentView window]]);645 m_viewController = adoptNS([allocUIViewControllerInstance() init]); 686 646 [[m_viewController view] setFrame:[m_window bounds]]; 687 647 [m_viewController _setIgnoreAppSupportedOrientations:YES];
Note:
See TracChangeset
for help on using the changeset viewer.