2016-09-30 Anders Carlsson Follow up for Add CSS -webkit-appearance property for Apple Pay buttons Reviewed by Dan Bernstein. * css/CSSParser.cpp: (WebCore::isKeywordPropertyID): Add CSSPropertyApplePayButtonStyle and CSSPropertyApplePayButtonType. * rendering/RenderThemeCocoa.mm: (WebCore::RenderThemeCocoa::paintApplePayButton): Make sure to reinitialize the text matrix. 2016-09-30 Babak Shafiei Merge r206181. rdar://problem/28408526 2016-09-20 Anders Carlsson Remove "in-store" from "-apple-pay-button-type" https://bugs.webkit.org/show_bug.cgi?id=162321 rdar://problem/28394581 Reviewed by Beth Dakin. * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::operator ApplePayButtonType): * css/CSSValueKeywords.in: * css/parser/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): * css/parser/CSSParserFastPaths.cpp: (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue): * rendering/RenderThemeCocoa.mm: (WebCore::toPKPaymentButtonType): * rendering/style/RenderStyleConstants.h: 2016-09-30 Babak Shafiei Merge r205992. rdar://problem/28567557 2016-09-15 Anders Carlsson Fix build. * platform/spi/cocoa/PassKitSPI.h: 2016-09-30 Babak Shafiei Merge r205980. rdar://problem/28567557 2016-09-14 Anders Carlsson Add CSS -webkit-appearance property for Apple Pay buttons https://bugs.webkit.org/show_bug.cgi?id=161986 Reviewed by Dean Jackson. Add a new -webkit-appearance property, "-apple-pay-button". Also, add two properties, "-apple-pay-button-type" and "-apple-pay-button-style". * WebCore.xcodeproj/project.pbxproj: Add RenderThemeCocoa.h and RenderThemeCocoa.mm. * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): Handle CSSPropertyApplePayButtonStyle and CSSPropertyApplePayButtonType. * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::operator ApplePayButtonStyle): (WebCore::CSSPrimitiveValue::operator ApplePayButtonType): Add ApplePayButtonStyle and ApplePayButtonType conversion routines. * css/CSSPropertyNames.in: Add -apple-pay-button-style and -apple-pay-button-type. * css/CSSValueKeywords.in: Add CSS values. * css/parser/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): Handle CSSPropertyApplePayButtonStyle and CSSPropertyApplePayButtonType. * css/parser/CSSParserFastPaths.cpp: (WebCore::CSSParserFastPaths::isKeywordPropertyID): Handle CSSPropertyApplePayButtonStyle and CSSPropertyApplePayButtonType. (WebCore::isAppleLegacyCSSPropertyKeyword): New function that returns whether the CSS property should be rewritten to -webkit-. We want to rewrite -apple- but not -apple-pay-. (WebCore::cssPropertyID): Use the newly added isAppleLegacyCSSPropertyKeyword. (WebCore::isAppleLegacyCSSValueKeyword): Check for "-apple-pay-" in addition to "-apple-system-". * platform/ThemeTypes.h: Add ApplePayButtonPart. * platform/spi/cocoa/PassKitSPI.h: Add PKDrawApplePayButton declaration. * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustStyle): Handle ApplePayButtonPart. (WebCore::RenderTheme::paint): Handle ApplePayButtonPart. * rendering/RenderTheme.h: (WebCore::RenderTheme::adjustApplePayButtonStyle): (WebCore::RenderTheme::paintApplePayButton): Add new functions. * rendering/RenderThemeCocoa.h: Added. * rendering/RenderThemeCocoa.mm: Added. (WebCore::RenderThemeCocoa::adjustApplePayButtonStyle): Adjust the minimum width and minimum height accordingly. (WebCore::toPKPaymentButtonStyle): (WebCore::toPKPaymentButtonType): Helper functions that convert our WebCore types to PK types. (WebCore::RenderThemeCocoa::paintApplePayButton): Call PKDrawApplePayButton. * rendering/RenderThemeIOS.h: * rendering/RenderThemeMac.h: Inherit from RenderThemeCocoa. * rendering/style/RenderStyle.h: (WebCore::RenderStyle::applePayButtonStyle): (WebCore::RenderStyle::applePayButtonType): (WebCore::RenderStyle::setApplePayButtonStyle): (WebCore::RenderStyle::setApplePayButtonType): (WebCore::RenderStyle::initialApplePayButtonStyle): (WebCore::RenderStyle::initialApplePayButtonType): * rendering/style/RenderStyleConstants.h: * rendering/style/StyleRareInheritedData.cpp: (WebCore::StyleRareInheritedData::StyleRareInheritedData): (WebCore::StyleRareInheritedData::operator==): * rendering/style/StyleRareInheritedData.h: Add new style members for the button style and button type properties. 2016-09-29 Babak Shafiei Merge r206556. rdar://problem/28524440 2016-09-28 Jer Noble CRASH at WebCore::CDMSessionAVStreamSession::update + 950 https://bugs.webkit.org/show_bug.cgi?id=162701 Reviewed by Beth Dakin. If the SourceBuffer backing a