Changeset 276364 in webkit
- Timestamp:
- Apr 21, 2021, 8:44:48 AM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r276363 r276364 1 2021-04-21 Aditya Keerthi <akeerthi@apple.com> 2 3 Fix the watchOS build after r276325 4 https://bugs.webkit.org/show_bug.cgi?id=224868 5 <rdar://problem/76938541> 6 7 Reviewed by Wenson Hsieh. 8 9 r276325 broke the watchOS build by using UIBlurEffectStyleSystemMaterial 10 in WKDateTimeInputControl.mm. 11 12 However, while we have been compiling WKDateTimeInputControl for 13 watchOS, the class is unused. This is due to the fact that watchOS has 14 a separate date/time picker implementation. Rather than conditionally 15 compiling the UIBlurEffectStyleSystemMaterial logic (which would 16 involve writing additional logic to make sure WKDateTimeInputControl 17 still compiles on watchOS), we can simply stop building 18 WKDateTimeInputControl on watchOS. 19 20 * UIProcess/ios/WKContentViewInteraction.h: 21 * UIProcess/ios/WKContentViewInteraction.mm: 22 (-[WKContentView dateTimeInputControl:]): 23 (-[WKContentView timePickerValueHour:]): 24 (-[WKContentView timePickerValueMinute:]): 25 * UIProcess/ios/forms/WKDateTimeInputControl.h: 26 * UIProcess/ios/forms/WKDateTimeInputControl.mm: 27 1 28 2021-04-21 Kimmo Kinnunen <kkinnunen@apple.com> 2 29 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
r276331 r276364 111 111 @class WKContextMenuElementInfo; 112 112 @class WKDataListSuggestionsControl; 113 @class WKDateTimeInputControl;114 113 @class WKFocusedFormControlView; 115 114 @class WKFormInputSession; … … 120 119 @class WKTextRange; 121 120 @class _WKTextInputContext; 121 122 #if !PLATFORM(WATCHOS) 123 @class WKDateTimeInputControl; 124 #endif 122 125 123 126 @class UIPointerInteraction; … … 748 751 @property (nonatomic, readonly) NSString *selectFormPopoverTitle; 749 752 @property (nonatomic, readonly) NSString *formInputLabel; 753 #if !PLATFORM(WATCHOS) 750 754 @property (nonatomic, readonly) WKDateTimeInputControl *dateTimeInputControl; 755 #endif 751 756 @property (nonatomic, readonly) WKFormSelectControl *selectControl; 752 757 #if ENABLE(DRAG_SUPPORT) -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r276331 r276364 9643 9643 } 9644 9644 9645 #if !PLATFORM(WATCHOS) 9645 9646 - (WKDateTimeInputControl *)dateTimeInputControl 9646 9647 { … … 9649 9650 return nil; 9650 9651 } 9652 #endif 9651 9653 9652 9654 - (WKFormSelectControl *)selectControl … … 9776 9778 - (double)timePickerValueHour 9777 9779 { 9780 #if !PLATFORM(WATCHOS) 9778 9781 if ([_inputPeripheral isKindOfClass:[WKDateTimeInputControl class]]) 9779 9782 return [(WKDateTimeInputControl *)_inputPeripheral.get() timePickerValueHour]; 9783 #endif 9780 9784 return -1; 9781 9785 } … … 9783 9787 - (double)timePickerValueMinute 9784 9788 { 9789 #if !PLATFORM(WATCHOS) 9785 9790 if ([_inputPeripheral isKindOfClass:[WKDateTimeInputControl class]]) 9786 9791 return [(WKDateTimeInputControl *)_inputPeripheral.get() timePickerValueMinute]; 9792 #endif 9787 9793 return -1; 9788 9794 } -
trunk/Source/WebKit/UIProcess/ios/forms/WKDateTimeInputControl.h
r261658 r276364 24 24 */ 25 25 26 #if PLATFORM(IOS_FAMILY) 26 #if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) 27 27 28 28 #import "WKFormPeripheralBase.h" … … 41 41 @end 42 42 43 #endif // PLATFORM(IOS_FAMILY) 43 #endif // PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) -
trunk/Source/WebKit/UIProcess/ios/forms/WKDateTimeInputControl.mm
r276325 r276364 27 27 #import "WKDateTimeInputControl.h" 28 28 29 #if PLATFORM(IOS_FAMILY) 29 #if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) 30 30 31 31 #import "UserInterfaceIdiom.h" … … 687 687 @end 688 688 689 #endif // PLATFORM(IOS_FAMILY) 689 #endif // PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS)
Note:
See TracChangeset
for help on using the changeset viewer.