RESOLVED FIXED 12345
REGRESSION: Disabled pop-up text is not grayed out
https://bugs.webkit.org/show_bug.cgi?id=12345
Summary REGRESSION: Disabled pop-up text is not grayed out
mitz
Reported 2007-01-20 05:08:43 PST
Mac-themed pop-ups that are disabled use black text for the selected item instead of gray.
Attachments
Use gray for disabled pop-ups (31.29 KB, patch)
2007-01-20 07:33 PST, mitz
no flags
mitz
Comment 1 2007-01-20 07:33:50 PST
Created attachment 12572 [details] Use gray for disabled pop-ups I added the casts to RGBA32 to appease the compiler, which otherwise regarded the colors as external symbols, leading to a link error. I couldn't figure out what the problem was. The following worked: e->isEnabled() ? Color::black : 0 e->isEnabled() ? 0 : Color::darkGray but this didn't work: e->isEnabled() ? Color::black : Color::darkGray
David Kilzer (:ddkilzer)
Comment 2 2007-01-20 16:16:31 PST
(In reply to comment #1) > I added the casts to RGBA32 to appease the compiler, which otherwise regarded > the colors as external symbols, leading to a link error. I couldn't figure out > what the problem was. The following worked: > e->isEnabled() ? Color::black : 0 > e->isEnabled() ? 0 : Color::darkGray > but this didn't work: > e->isEnabled() ? Color::black : Color::darkGray Weird. Did you try adding parenthesis? Sounds like a toolchain bug.
mitz
Comment 3 2007-01-20 22:31:47 PST
(In reply to comment #2) > Weird. Did you try adding parenthesis? Yeah, forgot to mention it.
Sam Weinig
Comment 4 2007-01-21 15:57:05 PST
Mitz, Is there a reason that this is not marked for a review? Also, could you please use static_cast.
Darin Adler
Comment 5 2007-01-21 17:42:24 PST
I filed an internal Apple gcc bug report with a reduced test case: <rdar://problem/4944665> can't compile example using initialized static const and ternary operator
Darin Adler
Comment 6 2007-01-21 17:49:30 PST
I realized that it's not really a compiler bug, so I retitled that internal bug report.
Darin Adler
Comment 7 2007-01-21 17:51:22 PST
Committed revision 19020.
Adam Barth
Comment 8 2010-03-25 00:09:36 PDT
Adam Barth
Comment 9 2010-03-25 00:52:27 PDT
Maurice Jackson
Comment 10 2024-10-08 01:33:42 PDT Comment hidden (spam)
martinfranklin
Comment 11 2024-12-29 20:44:31 PST Comment hidden (spam)
Note You need to log in before you can comment on or make changes to this bug.