Bug 251066

Summary: [macOS] Use AppKit interfaces to avoid hardcoding NSCell sizes and outsets
Product: WebKit Reporter: Aditya Keerthi <akeerthi>
Component: FormsAssignee: Aditya Keerthi <akeerthi>
Status: NEW ---    
Severity: Normal CC: cdumez, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Aditya Keerthi 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.
Comment 1 Radar WebKit Bug Importer 2023-01-30 21:23:19 PST
<rdar://problem/104851604>