RESOLVED FIXED 246604
[WinCairo] Use RenderThemeAdwaita instead of RenderThemeWin
https://bugs.webkit.org/show_bug.cgi?id=246604
Summary [WinCairo] Use RenderThemeAdwaita instead of RenderThemeWin
Fujii Hironori
Reported 2022-10-17 00:05:55 PDT
Created attachment 463020 [details] WIP patch [WinCairo] Use RenderThemeAdwaita instead of RenderThemeWin RenderThemeWin doesn't work with UseGPUProcessForDOMRenderingEnabled. Let's use RenderThemeAdwaita. Piggy backed on GTK efforts.
Attachments
WIP patch (4.82 KB, patch)
2022-10-17 00:05 PDT, Fujii Hironori
no flags
Patch (13.53 KB, patch)
2022-10-17 22:18 PDT, Fujii Hironori
no flags
Patch (13.53 KB, patch)
2022-10-17 22:23 PDT, Fujii Hironori
no flags
Patch (13.89 KB, patch)
2022-10-18 14:13 PDT, Fujii Hironori
no flags
Patch (14.52 KB, patch)
2022-10-18 14:39 PDT, Fujii Hironori
no flags
Patch (14.50 KB, patch)
2022-10-18 18:39 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2022-10-17 00:21:29 PDT
See also: Bug 246264 – [GPU Process] Enable drawing form controls for GPU Process on macOS
Fujii Hironori
Comment 2 2022-10-17 22:18:18 PDT
Fujii Hironori
Comment 3 2022-10-17 22:23:47 PDT
Fujii Hironori
Comment 4 2022-10-18 14:13:07 PDT
Fujii Hironori
Comment 5 2022-10-18 14:39:04 PDT
Darin Adler
Comment 6 2022-10-18 15:15:22 PDT
Comment on attachment 463066 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463066&action=review > Source/WebCore/rendering/RenderThemeAdwaita.cpp:241 > +#elif PLATFORM(WIN) The code below doesn’t look platform-specific. Can we instead just use "#else" here? Or is this actively specific to PLATFORM(WIN)? > Source/WebCore/rendering/RenderThemeAdwaita.cpp:243 > + if (!path) Typically it’s best to check isNull() instead of using ! for WTF::String. But also, maybe FileSystem::readEntireFile already harmlessly fails if passed a null string, so maybe we don’t need this check.
Don Olmstead
Comment 7 2022-10-18 15:20:04 PDT
Comment on attachment 463066 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463066&action=review Also LGTM > Source/WebCore/platform/adwaita/ScrollbarThemeAdwaita.cpp:330 > + gboolean warpSlider = FALSE; > + g_object_get(gtk_settings_get_default(), > + "gtk-primary-button-warps-slider", > + &warpSlider, nullptr); > + return warpSlider; I'm not a fan of the variable shadowing here. >> Source/WebCore/rendering/RenderThemeAdwaita.cpp:241 >> +#elif PLATFORM(WIN) > > The code below doesn’t look platform-specific. Can we instead just use "#else" here? Or is this actively specific to PLATFORM(WIN)? The webkitBundlePath code is specific to PLATFORM(WIN) at this time.
Fujii Hironori
Comment 8 2022-10-18 17:52:55 PDT
Comment on attachment 463066 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463066&action=review >> Source/WebCore/platform/adwaita/ScrollbarThemeAdwaita.cpp:330 >> + return warpSlider; > > I'm not a fan of the variable shadowing here. Will fix. >> Source/WebCore/rendering/RenderThemeAdwaita.cpp:243 >> + if (!path) > > Typically it’s best to check isNull() instead of using ! for WTF::String. But also, maybe FileSystem::readEntireFile already harmlessly fails if passed a null string, so maybe we don’t need this check. Right. Will fix.
Fujii Hironori
Comment 9 2022-10-18 18:39:52 PDT
EWS
Comment 10 2022-10-18 22:43:51 PDT
Committed 255715@main (284e48c374b0): <https://commits.webkit.org/255715@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463071 [details].
Radar WebKit Bug Importer
Comment 11 2022-10-18 22:44:19 PDT
Note You need to log in before you can comment on or make changes to this bug.