Simplify NSCell focus ring drawing situation
Categories
(Core :: Widget: Cocoa, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(1 file, 1 obsolete file)
We have some old code in nsNativeThemeCocoa.mm which has a bunch of different paths for making sure we draw the right focus rings in the right cases. We can simplify this code considerably.
This blocks bug 1077365 because it's necessary for proper NSTextFieldCell focus rings, and it blocks bug 1697336 because that bug switches the style of the search field cell in the library toolbar, and its focus ring will look wonky without this fix.
Assignee | ||
Comment 1•4 years ago
|
||
We use these searchfields in the bookmarks sidebar, and in the toolbar in the
bookmarks library window.
The old code was a workaround for missing focus rings.
It turns out that NSTextFieldCell only draws focus rings if the object passed
to inView: is an NSControl. So if we make CellDrawView inherit from NSControl,
we get the focus ring.
Depends on D107751
Assignee | ||
Comment 2•4 years ago
|
||
We use these searchfields in the bookmarks sidebar, and in the toolbar in the
bookmarks library window.
The old code was a workaround for missing focus rings.
It turns out that NSTextFieldCell only draws focus rings if the object passed
to inView: is an NSControl. So if we make CellDrawView inherit from NSControl,
we get the focus ring.
Depends on D107907
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
Description
•