Changeset 231962 in webkit


Ignore:
Timestamp:
May 18, 2018 10:31:46 AM (6 years ago)
Author:
mmaxfield@apple.com
Message:

[iOS] Password fields obscure the text with rectangles instead of circles
https://bugs.webkit.org/show_bug.cgi?id=185760
<rdar://problem/38644697>

Reviewed by Zalan Bujtas.

Source/WebCore:

Password fields are obscured by drawing U+25CF BLACK CIRCLE. On iOS, we have custom handling
for this character. However, this custom handling is unnecessary and isn't present on macOS.
Instead, we should simply unify the password obscuring codepath between iOS and macOS.

Test: fast/text/black-circle.html

  • platform/graphics/ios/FontCacheIOS.mm:

(WebCore::requiresCustomFallbackFont):
(WebCore::FontCache::getCustomFallbackFont):

LayoutTests:

  • fast/text/black-circle-expected.html: Added.
  • fast/text/black-circle.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r231959 r231962  
     12018-05-18  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [iOS] Password fields obscure the text with rectangles instead of circles
     4        https://bugs.webkit.org/show_bug.cgi?id=185760
     5        <rdar://problem/38644697>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * fast/text/black-circle-expected.html: Added.
     10        * fast/text/black-circle.html: Added.
     11
    1122018-05-18  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r231959 r231962  
     12018-05-18  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [iOS] Password fields obscure the text with rectangles instead of circles
     4        https://bugs.webkit.org/show_bug.cgi?id=185760
     5        <rdar://problem/38644697>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        Password fields are obscured by drawing U+25CF BLACK CIRCLE. On iOS, we have custom handling
     10        for this character. However, this custom handling is unnecessary and isn't present on macOS.
     11        Instead, we should simply unify the password obscuring codepath between iOS and macOS.
     12
     13        Test: fast/text/black-circle.html
     14
     15        * platform/graphics/ios/FontCacheIOS.mm:
     16        (WebCore::requiresCustomFallbackFont):
     17        (WebCore::FontCache::getCustomFallbackFont):
     18
    1192018-05-18  Chris Dumez  <cdumez@apple.com>
    220
  • trunk/Source/WebCore/platform/graphics/ios/FontCacheIOS.mm

    r228877 r231962  
    4646bool requiresCustomFallbackFont(UChar32 character)
    4747{
    48     return character == AppleLogo || character == blackCircle || character == narrowNonBreakingSpace;
     48    return character == AppleLogo || character == narrowNonBreakingSpace;
    4949}
    5050
     
    5454
    5555    static NeverDestroyed<AtomicString> helveticaFamily("Helvetica Neue", AtomicString::ConstructFromLiteral);
    56     static NeverDestroyed<AtomicString> lockClockFamily("LockClock-Light", AtomicString::ConstructFromLiteral);
    5756    static NeverDestroyed<AtomicString> timesNewRomanPSMTFamily("TimesNewRomanPSMT", AtomicString::ConstructFromLiteral);
    5857
     
    6160    case AppleLogo:
    6261        family = &helveticaFamily.get();
    63         break;
    64     case blackCircle:
    65         family = &lockClockFamily.get();
    6662        break;
    6763    case narrowNonBreakingSpace:
Note: See TracChangeset for help on using the changeset viewer.