Bug 29652

Summary: RenderThemeChromiumWin should use true system colors for CSS system colors
Product: WebKit Reporter: Peter Kasting <pkasting>
Component: CSSAssignee: Peter Kasting <pkasting>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
patch v1 levin: review+, levin: commit-queue-

Peter Kasting
Reported 2009-09-22 14:17:50 PDT
Right now we fall back to the default hardcoded values in RenderTheme. This means that e.g. the search buttons on google.com (which have recently changed to using CSS system colors) are illegible in white-on-black system themes. RenderThemeWin.cpp has some appropriate-looking code, so the fix is easy: copy it.
Attachments
patch v1 (3.94 KB, patch)
2009-09-22 14:19 PDT, Peter Kasting
levin: review+
levin: commit-queue-
Peter Kasting
Comment 1 2009-09-22 14:19:13 PDT
Created attachment 39944 [details] patch v1
David Levin
Comment 2 2009-09-22 14:41:35 PDT
Comment on attachment 39944 [details] patch v1 Two minor nits to fix up on landing. > Index: WebCore/rendering/RenderThemeChromiumWin.cpp > =================================================================== > +// Map a CSSValue* system color to an index understood by GetSysColor Please add a period to the end of the sentence. > +static int cssValueIdToSysColorIndex(int cssValueId) > +{ > + switch (cssValueId) { > + case CSSValueActiveborder: return COLOR_ACTIVEBORDER; A case label should line up with its switch statement (see http://webkit.org/coding/coding-style.html)
Eric Seidel (no email)
Comment 3 2009-09-22 14:53:35 PDT
Comment on attachment 39944 [details] patch v1 Looks sane to me too. Dave just beat me!
Peter Kasting
Comment 4 2009-09-22 15:05:40 PDT
Both comments addressed and patch landed in r48652.
Note You need to log in before you can comment on or make changes to this bug.