| Summary: | [macOS] Move stepper painting code off of Carbon API | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Aditya Keerthi <akeerthi> | ||||||||
| Component: | Forms | Assignee: | Aditya Keerthi <akeerthi> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, darin, thorton, webkit-bug-importer, wenson_hsieh | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | Safari Technology Preview | ||||||||||
| Hardware: | Mac | ||||||||||
| OS: | Other | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Aditya Keerthi
2020-08-18 12:38:19 PDT
Created attachment 406802 [details]
Patch
Comment on attachment 406802 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406802&action=review We should figure out how to make test coverage for this. > Source/WebCore/platform/mac/ThemeMac.mm:637 > + ControlStates::States states = controlStates.states(); Consider auto here instead of writing out the type ControlStates::States > Source/WebCore/platform/mac/ThemeMac.mm:672 > + (__bridge NSString *)kCUIWidgetKey: (__bridge NSString *)kCUIWidgetButtonLittleArrows, > + (__bridge NSString *)kCUISizeKey: coreUISize, > + (__bridge NSString *)kCUIStateKey: coreUIState, > + (__bridge NSString *)kCUIValueKey: (states & ControlStates::SpinUpState) ? @1 : @0, > + (__bridge NSString *)kCUIIsFlippedKey : @NO, > + (__bridge NSString *)kCUIScaleKey : @1, > + (__bridge NSString *)kCUIMaskOnlyKey : @NO Mixed formatting here about whether the ":" has a space before it or not. Created attachment 406817 [details]
Patch for landing
(In reply to Darin Adler from comment #3) > Comment on attachment 406802 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=406802&action=review > > We should figure out how to make test coverage for this. I added a reference mismatch test to verify that the stepper has a different appearance under dark mode. Committed r265860: <https://trac.webkit.org/changeset/265860> All reviewed patches have been landed. Closing bug and clearing flags on attachment 406817 [details]. Reopening to attach new patch. Created attachment 406947 [details]
Patch
Uploaded a patch to the wrong bug. |