Closed Bug 415466 Opened 17 years ago Closed 17 years ago

draw focus rings for single and multi-line text fields

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jaas, Assigned: jaas)

References

(Depends on 2 open bugs)

Details

Attachments

(3 files, 1 obsolete file)

We should draw focus rings for single and multi-line text fields. There used to be clipping bugs that made this difficult but those appear to be gone now.
Flags: wanted1.9+
Attached patch fix v0.9 (obsolete) (deleted) — Splinter Review
This works well but I need to test on 10.4. I can do that in the next day or two.
> There used to be clipping bugs ... but those appear to be gone now Does that mean bug 414994 should be marked as WFM?
Blocks: 53927
Attached patch fix v1.0 (deleted) — Splinter Review
Attachment #301152 - Attachment is obsolete: true
Attachment #301234 - Flags: review?(smichaud)
(In reply to comment #2) > > There used to be clipping bugs ... but those appear to be gone now > > Does that mean bug 414994 should be marked as WFM? Not sure. That bug has to do with buttons, my comments here only pertain to text fields.
Comment on attachment 301234 [details] [diff] [review] fix v1.0 This looks fine to me (though I haven't tested it).
Attachment #301234 - Flags: review?(smichaud) → review+
Attachment #301234 - Flags: superreview?(roc)
Hmm ... the patch looks fine, but why does it work? If I have <style>span:hover { outline:2px solid green; }</style> <input type="text"><span>Hello</span> Does focusing the input and then adding/removing the span's outline paint the focus ring correctly?
Attachment #301234 - Flags: superreview?(roc) → superreview+
Comment on attachment 301234 [details] [diff] [review] fix v1.0 This is probably worth taking. It is a commonly complained-about issue on the Mac. Roc - that test case you posted works fine. I don't see how this code is different from any other focus ring drawing we do.
Attachment #301234 - Flags: approval1.9?
Attachment #301234 - Flags: approval1.9? → approval1.9+
landed on trunk
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attached patch fix width, v1.0 (deleted) — Splinter Review
Attachment #301874 - Flags: superreview?(roc)
the width of the focus ring for multiline text fields is wrong, above patch fixes that
landed fix width v1.0 as a minor tweak to the already reviewed and approved patch, still requesting post-landing sr from roc to be safe
Attachment #301874 - Flags: superreview?(roc) → superreview+
Depends on: 416259
Depends on: 416955
Depends on: 417124
Depends on: 416929
No longer depends on: 416955
Attached image Cosmetic glitch on livejournal.com (deleted) —
I've been running into a wacky-ass cosmetic glitch with this since it landed. It involves stacked text fields (single and multiple lines) and I only see it in Livejournal comment threads when I'm logged in (that is to say, when the fields are revealed with a Javascript link instead of residing on a separate page). Here's a screenshot, and I'll try to narrow it down to a testcase.
(In reply to comment #12) That looks like the same issue as bug 416929.
Oop, it is. Thanks for the heads-up!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: