Bug 137054

Summary: [Yosemite] Button text doesn't go white while pushing the button, like it does for real buttons
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch sam: review+

Description Dean Jackson 2014-09-23 19:59:32 PDT
[Yosemite] Button text doesn't go white while pushing the button, like it does for real buttons
Comment 1 Dean Jackson 2014-09-23 20:07:50 PDT
Created attachment 238581 [details]
Patch
Comment 2 Dean Jackson 2014-09-24 03:33:38 PDT
rdar://problem/17559038
Comment 3 Dean Jackson 2014-09-24 12:57:39 PDT
Committed r173928: <http://trac.webkit.org/changeset/173928>
Comment 4 Darin Adler 2014-09-25 22:23:37 PDT
Comment on attachment 238581 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=238581&action=review

> Source/WebCore/rendering/RenderThemeMac.mm:523
> +    case CSSValueActivebuttontext:
> +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
> +        color = 0xC0FFFFFF;
> +#endif
> +        break;

Don’t we want to set the color to something on pre-101000 systems instead of letting it call through to RenderTheme::systemColor? Maybe convertNSColorToColor([NSColor controlTextColor])?

No FIXME about this being hardcoded? Same problem as with CSSValueInfobackground, I guess.