Bug 251066 - [macOS] Use AppKit interfaces to avoid hardcoding NSCell sizes and outsets
Summary: [macOS] Use AppKit interfaces to avoid hardcoding NSCell sizes and outsets
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aditya Keerthi
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-23 21:22 PST by Aditya Keerthi
Modified: 2023-01-30 21:23 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>