Bug 238398

Summary: [GTK][WPE] Support CSS accent-color
Product: WebKit Reporter: Alice Mikhaylenko <alicem>
Component: WebKitGTKAssignee: Alice Mikhaylenko <alicem>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, changseok, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, mcatanzaro, pdr
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=246667
Attachments:
Description Flags
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
none
Patch none

Description Alice Mikhaylenko 2022-03-25 16:27:57 PDT
See the patch.
Comment 1 Alice Mikhaylenko 2022-03-25 16:32:59 PDT
Created attachment 455809 [details]
Patch
Comment 2 Alice Mikhaylenko 2022-03-25 16:36:19 PDT
> # accent-color is currently only supported on Cocoa platforms

Oops, forgot to change this line. But I wonder if those tests actually pass...
Comment 3 Alice Mikhaylenko 2022-03-26 04:29:10 PDT
Created attachment 455840 [details]
Patch
Comment 4 Alice Mikhaylenko 2022-03-26 06:13:23 PDT
Created attachment 455843 [details]
Patch
Comment 5 Carlos Garcia Campos 2022-03-26 06:54:47 PDT
Comment on attachment 455843 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=455843&action=review

> Source/WebCore/platform/adwaita/ThemeAdwaita.cpp:266
> +        if (states.states().contains(ControlStates::States::Hovered)
> +            && states.states().contains(ControlStates::States::Enabled))

Use a single line here

> Source/WebCore/platform/adwaita/ThemeAdwaita.cpp:298
> +        if (states.states().contains(ControlStates::States::Hovered)
> +            && states.states().contains(ControlStates::States::Enabled))

Ditto.

> Source/WebCore/platform/adwaita/ThemeAdwaita.cpp:350
> +        if (states.states().contains(ControlStates::States::Hovered)
> +            && states.states().contains(ControlStates::States::Enabled))

Ditto.

> Source/WebCore/platform/adwaita/ThemeAdwaita.cpp:367
> +        if (states.states().contains(ControlStates::States::Hovered)
> +            && states.states().contains(ControlStates::States::Enabled))

Ditto.
Comment 6 Alice Mikhaylenko 2022-03-26 07:34:48 PDT
Created attachment 455848 [details]
Patch
Comment 7 Michael Catanzaro 2022-03-26 08:33:33 PDT
r=me, but you'll have to write my name in the changelog manually. I can't use the r+ dropdown due to bug #238323.
Comment 8 Michael Catanzaro 2022-03-26 08:40:14 PDT
(In reply to Michael Catanzaro from comment #7)
> r=me, but you'll have to write my name in the changelog manually. I can't
> use the r+ dropdown due to bug #238323.

I missed that you already got r+ from Carlos. Once you have r+, you don't have to request review again: you can either manually write in his name, or else download the patch using 'webkit-patch apply-from-bug' which will do so for you.
Comment 9 Alice Mikhaylenko 2022-03-26 11:47:32 PDT
Created attachment 455852 [details]
Patch
Comment 10 Alice Mikhaylenko 2022-03-26 11:48:10 PDT
Err, I've manually written in the name and it still has r?. Let's try this again.
Comment 11 Alice Mikhaylenko 2022-03-26 11:48:30 PDT
Created attachment 455853 [details]
Patch
Comment 12 Michael Catanzaro 2022-03-26 18:17:13 PDT
(In reply to Alexander Mikhaylenko from comment #10)
> Err, I've manually written in the name and it still has r?. Let's try this
> again.

'webkit-patch upload --no-review' works, or you could always just unset the flag yourself.
Comment 13 EWS 2022-03-27 04:54:48 PDT
Committed r291950 (248917@main): <https://commits.webkit.org/248917@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 455853 [details].