Changeset 209945 in webkit


Ignore:
Timestamp:
Dec 16, 2016 3:17:42 PM (7 years ago)
Author:
Chris Dumez
Message:

[iOS] Align HTML from validation popover style with Copy/Paste callout bar
https://bugs.webkit.org/show_bug.cgi?id=165973
<rdar://problem/29336638>

Reviewed by Simon Fraser.

Tweak font size and padding of the HTML from validation popover to
match the style of the Copy/Paste callout bar on iOS.

  • platform/ios/ValidationBubbleIOS.mm:

(WebCore::ValidationBubble::ValidationBubble):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209944 r209945  
     12016-12-16  Chris Dumez  <cdumez@apple.com>
     2
     3        [iOS] Align HTML from validation popover style with Copy/Paste callout bar
     4        https://bugs.webkit.org/show_bug.cgi?id=165973
     5        <rdar://problem/29336638>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Tweak font size and padding of the HTML from validation popover to
     10        match the style of the Copy/Paste callout bar on iOS.
     11
     12        * platform/ios/ValidationBubbleIOS.mm:
     13        (WebCore::ValidationBubble::ValidationBubble):
     14
    1152016-12-16  Ryan Haddad  <ryanhaddad@apple.com>
    216
  • trunk/Source/WebCore/platform/ios/ValidationBubbleIOS.mm

    r209414 r209945  
    3535
    3636SOFT_LINK_FRAMEWORK(UIKit);
     37SOFT_LINK_CLASS(UIKit, UIFont);
    3738SOFT_LINK_CLASS(UIKit, UILabel);
    3839SOFT_LINK_CLASS(UIKit, UIPopoverPresentationController);
     
    9394namespace WebCore {
    9495
    95 static const CGFloat horizontalPadding = 8;
    96 static const CGFloat verticalPadding = 8;
     96static const CGFloat horizontalPadding = 17;
     97static const CGFloat verticalPadding = 9;
    9798static const CGFloat maxLabelWidth = 300;
    9899
     
    110111    RetainPtr<UILabel> label = adoptNS([[getUILabelClass() alloc] initWithFrame:CGRectZero]);
    111112    [label setText:message];
     113    [label setFont:[getUIFontClass() systemFontOfSize:14.0]];
    112114    [label setLineBreakMode:NSLineBreakByWordWrapping];
    113115    [label setNumberOfLines:4];
Note: See TracChangeset for help on using the changeset viewer.