Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ThemeAdwaita: checkbox, radio and inner spin button don't scale along…
… by page zoom https://bugs.webkit.org/show_bug.cgi?id=246679 Reviewed by Carlos Garcia Campos. ThemeAdwaita should scale controls based on a given zoom factor. Scale buttons for input elements with type=number, type=checkbox, type=radio and datalist, and select elements. ThemeAdwaita::paintArrow painted a 16x16 arrow at (0, 0) position. Change it to take a rect and paint an arrow at the center of the rect, fitting to the smaller edge. * Source/WebCore/platform/adwaita/ThemeAdwaita.cpp: (WebCore::ThemeAdwaita::paintArrow): (WebCore::ThemeAdwaita::controlSize const): (WebCore::ThemeAdwaita::paintSpinButton): * Source/WebCore/platform/adwaita/ThemeAdwaita.h: * Source/WebCore/rendering/RenderThemeAdwaita.cpp: (WebCore::RenderThemeAdwaita::paintTextField): (WebCore::RenderThemeAdwaita::popupInternalPaddingBox const): (WebCore::RenderThemeAdwaita::paintMenuList): * LayoutTests/platform/gtk/transforms/2d/zoom-menulist-expected.png: * LayoutTests/platform/gtk/transforms/2d/zoom-menulist-expected.txt: Canonical link: https://commits.webkit.org/255820@main
- Loading branch information
Showing
5 changed files
with
45 additions
and
49 deletions.
There are no files selected for viewing
Binary file modified
BIN
-150 Bytes
(99%)
LayoutTests/platform/gtk/transforms/2d/zoom-menulist-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters