REGRESSION (209396): Apple Pay buttons do not render
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Feb 2017 19:11:44 +0000 (19:11 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Feb 2017 19:11:44 +0000 (19:11 +0000)
commit18d424b4b07575c9373ee491954ce60d1b36cf16
tree8d80c220455a9988c8d57cd5182f875e2d62b0bd
parent63c0d6296753d4ab1c3fa612d65b89be2e79ac3f
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/css/appearance-apple-pay-button-expected.html [new file with mode: 0644]
LayoutTests/fast/css/appearance-apple-pay-button.html [new file with mode: 0644]
LayoutTests/platform/mac/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/css/parser/CSSPropertyParser.cpp