Changeset 212375 in webkit
- Timestamp:
- Feb 15, 2017, 10:12:25 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/ios-simulator/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/ios/ValidationBubbleIOS.mm (modified) (3 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/ios/UIScriptControllerIOS.mm (modified) (1 diff)
-
Tools/TestRunnerShared/UIScriptContext/UIScriptController.cpp (modified) (1 diff)
-
Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r212374 r212375 1 2017-02-15 Chris Dumez <cdumez@apple.com> 2 3 [iOS] Form Validation Bubble should be sensitive to Dynamic Type 4 https://bugs.webkit.org/show_bug.cgi?id=168291 5 <rdar://problem/30508593> 6 7 Reviewed by Tim Horton. 8 9 Skip fast/forms/validation-message-minimum-font-size.html on iOS now 10 that the ValidationBubble implementation no longer obeys the minimum 11 font size setting on iOS. 12 13 * platform/ios-simulator/TestExpectations: 14 1 15 2017-02-15 Ryan Haddad <ryanhaddad@apple.com> 2 16 -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r212242 r212375 2842 2842 media/modern-media-controls/media-controller/media-controller-toggle-compact-mode.html [ Skip ] 2843 2843 2844 # Form validation popover does not obey minimum font size setting on iOS but Dynamic Type instead. 2845 fast/forms/validation-message-minimum-font-size.html [ Skip ] 2846 2844 2847 # New Encrypted Media API not enabled on iOS 2845 2848 media/encrypted-media/mock-navigator-requestMediaKeySystemAccess.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r212365 r212375 1 2017-02-15 Chris Dumez <cdumez@apple.com> 2 3 [iOS] Form Validation Bubble should be sensitive to Dynamic Type 4 https://bugs.webkit.org/show_bug.cgi?id=168291 5 <rdar://problem/30508593> 6 7 Reviewed by Tim Horton. 8 9 Update ValidationBubble implementation on iOS to stop obeying the 10 minimum font size setting, given that this setting is not exposed 11 on iOS. Instead, we now rely on 12 [UIFont preferredFontForTextStyle:UIFontTextStyleCallout], which 13 will give us a font whose size obeys Dynamic Type [1] setting on iOS. 14 15 [1] https://developer.apple.com/ios/human-interface-guidelines/visual-design/typography/ 16 17 No new tests, no easily testable. 18 19 * platform/ios/ValidationBubbleIOS.mm: 20 (WebCore::ValidationBubble::ValidationBubble): 21 1 22 2017-02-15 Yusuke Suzuki <utatane.tea@gmail.com> 2 23 -
trunk/Source/WebCore/platform/ios/ValidationBubbleIOS.mm
r212325 r212375 41 41 SOFT_LINK_CLASS(UIKit, UIView); 42 42 SOFT_LINK_CLASS(UIKit, UIViewController); 43 SOFT_LINK_CONSTANT(UIKit, UIFontTextStyleCallout, UIFontTextStyle); 43 44 44 45 @interface WebValidationBubbleTapRecognizer : NSObject … … 98 99 static const CGFloat maxLabelWidth = 300; 99 100 100 ValidationBubble::ValidationBubble(UIView* view, const String& message, const Settings& settings)101 ValidationBubble::ValidationBubble(UIView* view, const String& message, const Settings&) 101 102 : m_view(view) 102 103 , m_message(message) … … 111 112 RetainPtr<UILabel> label = adoptNS([[getUILabelClass() alloc] initWithFrame:CGRectZero]); 112 113 [label setText:message]; 113 m_fontSize = std::max(settings.minimumFontSize, 14.0);114 [label setFont:[getUIFontClass() systemFontOfSize:m_fontSize]];114 [label setFont:[getUIFontClass() preferredFontForTextStyle:getUIFontTextStyleCallout()]]; 115 m_fontSize = [[label font] pointSize]; 115 116 [label setLineBreakMode:NSLineBreakByTruncatingTail]; 116 117 [label setNumberOfLines:4]; -
trunk/Tools/ChangeLog
r212372 r212375 1 2017-02-15 Chris Dumez <cdumez@apple.com> 2 3 [iOS] Form Validation Bubble should be sensitive to Dynamic Type 4 https://bugs.webkit.org/show_bug.cgi?id=168291 5 <rdar://problem/30508593> 6 7 Reviewed by Tim Horton. 8 9 Drop overridePreference() implementation in iOS's UIScriptController 10 as it was only used for the minimum font size setting and this setting 11 is not exposed on iOS. 12 13 * DumpRenderTree/ios/UIScriptControllerIOS.mm: 14 * TestRunnerShared/UIScriptContext/UIScriptController.cpp: 15 (WTR::UIScriptController::overridePreference): 16 * WebKitTestRunner/ios/UIScriptControllerIOS.mm: 17 1 18 2017-02-15 Jonathan Bedard <jbedard@apple.com> 2 19 -
trunk/Tools/DumpRenderTree/ios/UIScriptControllerIOS.mm
r212325 r212375 160 160 } 161 161 162 void UIScriptController::overridePreference(JSStringRef preferenceRef, JSStringRef valueRef)163 {164 }165 166 162 static CGPoint contentOffsetBoundedInValidRange(UIScrollView *scrollView, CGPoint contentOffset) 167 163 { -
trunk/Tools/TestRunnerShared/UIScriptContext/UIScriptController.cpp
r212325 r212375 398 398 } 399 399 400 #endif // !PLATFORM(COCOA) 401 402 #if !PLATFORM(MAC) 403 400 404 void UIScriptController::overridePreference(JSStringRef, JSStringRef) 401 405 { 402 406 } 403 404 #endif // !PLATFORM(COCOA)405 406 #if !PLATFORM(MAC)407 407 408 408 void UIScriptController::insertText(JSStringRef, int, int) -
trunk/Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm
r212325 r212375 652 652 } 653 653 654 void UIScriptController::overridePreference(JSStringRef preferenceRef, JSStringRef valueRef)655 {656 TestRunnerWKWebView *webView = TestController::singleton().mainWebView()->platformView();657 WKPreferences *preferences = webView.configuration.preferences;658 659 String preference = toWTFString(toWK(preferenceRef));660 String value = toWTFString(toWK(valueRef));661 if (preference == "WebKitMinimumFontSize")662 preferences.minimumFontSize = value.toDouble();663 }664 665 654 } 666 655
Note:
See TracChangeset
for help on using the changeset viewer.