NEW251066
[macOS] Use AppKit interfaces to avoid hardcoding NSCell sizes and outsets
https://bugs.webkit.org/show_bug.cgi?id=251066
Summary [macOS] Use AppKit interfaces to avoid hardcoding NSCell sizes and outsets
Aditya Keerthi
Reported 2023-01-23 21:22:57 PST
WebKit currently hardcodes cell sizes and outsets in order to paint controls on macOS. These values should be programmatically determined using AppKit. `-[NSCell cellSize]` can be used to obtain cell sizes. Obtaining outsets is a little trickier since there is no interface on `NSCell` that exposes these values – `-[NSView alignmentRectInsets]` is one option, but WebKit currently does not create `NSControl`s.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-01-30 21:23:19 PST
Note You need to log in before you can comment on or make changes to this bug.