-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[macOS] Fix rendering of <select> in vertical writing mode
https://bugs.webkit.org/show_bug.cgi?id=264457 rdar://118147979 Reviewed by Tim Nguyen. `NSPopUpButton` is not height resizable, resulting in a squished appearance for `<select>` in vertical writing mode. To fix, fall back to the `MenuListButton` path and use custom rendering when using a vertical writing mode. Update the painting code for menu list buttons to support vertical writing mode. * Source/WebCore/platform/graphics/mac/controls/MenuListButtonMac.mm: (WebCore::MenuListButtonMac::draw): Remove incorrect logic to draw a separator next to the arrows. Currently, and dating back to at least Safari 13, the separators do not show up (even in horizontal writing mode). Fixing the logic to get separators working does not result in an improvement in appearance. As a result, rather than re-writing the logic, simply remove it. * Source/WebCore/rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled const): Apply our fallback for zoomed `<select>` to `<select>`s that have a vertical writing mode. In both cases, the fallback is necessary as the native control only renders at fixed sizes. Canonical link: https://commits.webkit.org/270458@main
- Loading branch information
Showing
2 changed files
with
22 additions
and
29 deletions.
There are no files selected for viewing
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