Bug 251066
| Summary: | [macOS] Use AppKit interfaces to avoid hardcoding NSCell sizes and outsets | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Aditya Keerthi <akeerthi> |
| Component: | Forms | Assignee: | 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 | ||
Aditya Keerthi
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/104851604>