Changeset 212558 in webkit


Ignore:
Timestamp:
Feb 17, 2017 11:11:44 AM (7 years ago)
Author:
Simon Fraser
Message:

REGRESSION (209396): Apple Pay buttons do not render
https://bugs.webkit.org/show_bug.cgi?id=168523
rdar://problem/30451563

Reviewed by Geoffrey Garen.
Source/WebCore:

The new CSS parser mistakenly converted -apple-pay-button values to
-webkit-pay-button, breaking -webkit-appearance: -apple-pay-button.

Fix by excluding "-apple-pay" prefixed values from the conversion.

Test: fast/css/appearance-apple-pay-button.html

  • css/parser/CSSPropertyParser.cpp:

(WebCore::isAppleLegacyCssValueKeyword):

LayoutTests:

Ref test that masks out the middle and corners of the buttons.

  • fast/css/appearance-apple-pay-button-expected.html: Added.
  • fast/css/appearance-apple-pay-button.html: Added.
Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r212553 r212558  
     12017-02-17  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (209396): Apple Pay buttons do not render
     4        https://bugs.webkit.org/show_bug.cgi?id=168523
     5        rdar://problem/30451563
     6
     7        Reviewed by Geoffrey Garen.
     8       
     9        Ref test that masks out the middle and corners of the buttons.
     10
     11        * fast/css/appearance-apple-pay-button-expected.html: Added.
     12        * fast/css/appearance-apple-pay-button.html: Added.
     13
    1142017-02-17  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/LayoutTests/TestExpectations

    r212509 r212558  
    765765fast/table/hittest-tablecell-with-borders-right-edge.html [ Pass Failure ]
    766766fast/table/hittest-tablecell-right-edge.html [ Pass Failure ]
     767fast/css/appearance-apple-pay-button.html [ Failure ]
    767768
    768769webkit.org/b/150598 fast/repaint/table-hover-on-link.html [ Pass Failure ]
  • trunk/LayoutTests/platform/mac/TestExpectations

    r212515 r212558  
    13401340webkit.org/b/158889 media/video-controls-show-on-kb-or-ax-event.html [ Pass Failure ]
    13411341
     1342[ Sierra+ ] fast/css/appearance-apple-pay-button.html [ Pass ]
     1343
    13421344# <rdar://problem/23500327> storage/websql/alter-to-info-table.html
    13431345[ Sierra+ ] storage/websql/alter-to-info-table.html [ Pass Failure ]
  • trunk/Source/WebCore/ChangeLog

    r212556 r212558  
     12017-02-17  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (209396): Apple Pay buttons do not render
     4        https://bugs.webkit.org/show_bug.cgi?id=168523
     5        rdar://problem/30451563
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        The new CSS parser mistakenly converted -apple-pay-button values to
     10        -webkit-pay-button, breaking -webkit-appearance: -apple-pay-button.
     11
     12        Fix by excluding "-apple-pay" prefixed values from the conversion.
     13
     14        Test: fast/css/appearance-apple-pay-button.html
     15
     16        * css/parser/CSSPropertyParser.cpp:
     17        (WebCore::isAppleLegacyCssValueKeyword):
     18
    1192017-02-17  Commit Queue  <commit-queue@webkit.org>
    220
  • trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp

    r212131 r212558  
    156156    static const char applePrefix[] = "-apple-";
    157157    static const char appleSystemPrefix[] = "-apple-system";
     158    static const char applePayPrefix[] = "-apple-pay";
    158159    static const char* appleWirelessPlaybackTargetActive = getValueName(CSSValueAppleWirelessPlaybackTargetActive);
    159160   
    160161    return hasPrefix(valueKeyword, length, applePrefix)
    161162    && !hasPrefix(valueKeyword, length, appleSystemPrefix)
     163    && !hasPrefix(valueKeyword, length, applePayPrefix)
    162164    && !WTF::equal(reinterpret_cast<const LChar*>(valueKeyword), reinterpret_cast<const LChar*>(appleWirelessPlaybackTargetActive), length);
    163165}
Note: See TracChangeset for help on using the changeset viewer.