This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GTK] WebKit browser scrollbars not always correctly displayed if ove…
…rlay scrollbars are disabled https://bugs.webkit.org/show_bug.cgi?id=234874 Patch by Michael Catanzaro <email@example.com> on 2022-02-11 Reviewed by Carlos Garcia Campos. If overlay scrollbars are disabled, and there is not enough content for the page to be scrollable, and scrollbars are forced using overflow:scroll, then we currently fail to paint the scrollbars properly. At minimum, we need to paint the scrollbar background, which is what the macOS port does. Do so. In the future, we might want to additionally paint the rest of the scrollbars, similar to the GTK_POLICY_ALWAYS scrollbar policy type, but this would require more work. * platform/adwaita/ScrollbarThemeAdwaita.cpp: (WebCore::ScrollbarThemeAdwaita::paint): * platform/gtk/ScrollbarThemeGtk.cpp: (WebCore::ScrollbarThemeGtk::paint): Canonical link: https://commits.webkit.org/247131@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@289620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 3 changed files with 36 additions and 14 deletions.