Bug 227868

Summary: [GTK][WPE] Support drawing scrollbar corner
Product: WebKit Reporter: Alice Mikhaylenko <alicem>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aperez, bugs-noreply, changseok, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, mcatanzaro, pdr, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
aperez: review+
Patch
none
Patch ews-feeder: commit-queue-

Alice Mikhaylenko
Reported 2021-07-12 03:13:57 PDT
See the patch.
Attachments
Patch (10.61 KB, patch)
2021-07-12 03:18 PDT, Alice Mikhaylenko
ews-feeder: commit-queue-
Patch (12.10 KB, patch)
2021-07-12 03:49 PDT, Alice Mikhaylenko
aperez: review+
Patch (12.10 KB, patch)
2021-07-12 04:38 PDT, Alice Mikhaylenko
no flags
Patch (12.11 KB, patch)
2021-07-12 04:39 PDT, Alice Mikhaylenko
ews-feeder: commit-queue-
Alice Mikhaylenko
Comment 1 2021-07-12 03:18:48 PDT
Alice Mikhaylenko
Comment 2 2021-07-12 03:49:20 PDT
Created attachment 433309 [details] Patch Missed a use outside WebCore.
Adrian Perez
Comment 3 2021-07-12 04:32:53 PDT
Comment on attachment 433309 [details] Patch Patch LGTM, we may want to have someone from Apple confirm that the additional parameter passed around is okay for them :)
Adrian Perez
Comment 4 2021-07-12 04:34:03 PDT
Ah, and please add the [WPE] in the ChangeLog summary line; the port uses the same code to paint scrollbars nowadays.
Alice Mikhaylenko
Comment 5 2021-07-12 04:37:37 PDT
Yeah, I noticed the macOS scroll corners were slightly broken with scrollbars on the left since there's no way to check that without the new parameter. :) I have no idea how to request RTL flip there though (it uses native scrollbars) so didn't update it.
Alice Mikhaylenko
Comment 6 2021-07-12 04:38:26 PDT
Created attachment 433310 [details] Patch Added [WPE].
Alice Mikhaylenko
Comment 7 2021-07-12 04:39:43 PDT
Created attachment 433311 [details] Patch And of course I forgot the second changelog in WebKit/. Updated too.
Michael Catanzaro
Comment 8 2021-07-12 05:48:30 PDT
Comment on attachment 433311 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=433311&action=review > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:1956 > - ScrollbarTheme::theme().paintScrollCorner(graphicsContext, scrollCornerRect); > + ScrollbarTheme::theme().paintScrollCorner(*this, graphicsContext, scrollCornerRect); *Technically* this line of the changeset requires owner approval, but it's such a small unproblematic change, only intended to keep this code building, that I think we can skip the formality in this case.
Alice Mikhaylenko
Comment 9 2021-07-12 06:19:16 PDT
Ah yeah, flaky tests again.
EWS
Comment 10 2021-07-12 07:26:51 PDT
Committed r279826 (239587@main): <https://commits.webkit.org/239587@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 433311 [details].
Note You need to log in before you can comment on or make changes to this bug.