RESOLVED FIXED 161986
Add CSS -webkit-appearance property for Apple Pay buttons
https://bugs.webkit.org/show_bug.cgi?id=161986
Summary Add CSS -webkit-appearance property for Apple Pay buttons
Anders Carlsson
Reported 2016-09-14 13:52:28 PDT
Add CSS -webkit-appearance property for Apple Pay buttons
Attachments
Patch (34.71 KB, patch)
2016-09-14 14:27 PDT, Anders Carlsson
no flags
Patch (39.90 KB, patch)
2016-09-14 14:38 PDT, Anders Carlsson
no flags
Patch (39.96 KB, patch)
2016-09-14 14:47 PDT, Anders Carlsson
no flags
Patch (35.22 KB, patch)
2016-09-14 15:17 PDT, Anders Carlsson
no flags
Patch (35.29 KB, patch)
2016-09-14 15:59 PDT, Anders Carlsson
no flags
Patch (35.29 KB, patch)
2016-09-14 16:26 PDT, Anders Carlsson
dino: review+
Anders Carlsson
Comment 1 2016-09-14 14:27:25 PDT
Anders Carlsson
Comment 2 2016-09-14 14:38:00 PDT
Anders Carlsson
Comment 3 2016-09-14 14:47:39 PDT
Anders Carlsson
Comment 4 2016-09-14 15:17:02 PDT
Anders Carlsson
Comment 5 2016-09-14 15:59:58 PDT
Anders Carlsson
Comment 6 2016-09-14 16:26:41 PDT
Dean Jackson
Comment 7 2016-09-14 17:56:40 PDT
Comment on attachment 288886 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=288886&action=review If it is possible to put the PDF artwork in Open Source, it would be good to have some ref tests for the combination of 3 styles * 4 types. > Source/WebCore/css/CSSPrimitiveValueMappings.h:5499 > + default: > + ASSERT_NOT_REACHED(); > + break; > + } Maybe pick one style between this ^^^^ > Source/WebCore/css/CSSPrimitiveValueMappings.h:5515 > + default: > + break; > + } > + ASSERT_NOT_REACHED(); ... and this ^^^^? Although maybe this is standard. Same with the ApplePayButtonType parts. > Source/WebCore/css/CSSPropertyNames.in:687 > +-apple-pay-button-style [NameForMethods=ApplePayButtonStyle] > +-apple-pay-button-type [NameForMethods=ApplePayButtonType] Wouldn't you get these names by default? > Source/WebCore/rendering/style/RenderStyle.h:1746 > +#if ENABLE(APPLE_PAY) > + void setApplePayButtonStyle(ApplePayButtonStyle v) { SET_VAR(rareInheritedData, applePayButtonStyle, static_cast<unsigned>(v)); } > + void setApplePayButtonType(ApplePayButtonType v) { SET_VAR(rareInheritedData, applePayButtonType, static_cast<unsigned>(v)); } > +#endif I think these should be in rareNonInheritedData, unless you think you'd want to set the style on a parent element and have it inherit down.
Anders Carlsson
Comment 8 2016-09-15 09:58:27 PDT
(In reply to comment #7) > Comment on attachment 288886 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=288886&action=review > > If it is possible to put the PDF artwork in Open Source, it would be good to > have some ref tests for the combination of 3 styles * 4 types. I don't think it's possible. > > > Source/WebCore/css/CSSPrimitiveValueMappings.h:5499 > > + default: > > + ASSERT_NOT_REACHED(); > > + break; > > + } > > Maybe pick one style between this ^^^^ > > > Source/WebCore/css/CSSPrimitiveValueMappings.h:5515 > > + default: > > + break; > > + } > > + ASSERT_NOT_REACHED(); > > ... and this ^^^^? > > Although maybe this is standard. Yeah, just matched the existing switch statements. > > Same with the ApplePayButtonType parts. > > > Source/WebCore/css/CSSPropertyNames.in:687 > > +-apple-pay-button-style [NameForMethods=ApplePayButtonStyle] > > +-apple-pay-button-type [NameForMethods=ApplePayButtonType] > > Wouldn't you get these names by default? I think so. > > > Source/WebCore/rendering/style/RenderStyle.h:1746 > > +#if ENABLE(APPLE_PAY) > > + void setApplePayButtonStyle(ApplePayButtonStyle v) { SET_VAR(rareInheritedData, applePayButtonStyle, static_cast<unsigned>(v)); } > > + void setApplePayButtonType(ApplePayButtonType v) { SET_VAR(rareInheritedData, applePayButtonType, static_cast<unsigned>(v)); } > > +#endif > > I think these should be in rareNonInheritedData, unless you think you'd want > to set the style on a parent element and have it inherit down. Yes, you're right.
Anders Carlsson
Comment 9 2016-09-15 10:48:05 PDT
Simon Fraser (smfr)
Comment 10 2016-09-15 12:28:57 PDT
r-, no tests :|
Note You need to log in before you can comment on or make changes to this bug.