UNCONFIRMED 40024
[GTK] The implementation of RenderThemeGtk::systemColor is incomplete
https://bugs.webkit.org/show_bug.cgi?id=40024
Summary [GTK] The implementation of RenderThemeGtk::systemColor is incomplete
Olivier Tilloy
Reported 2010-06-01 13:24:30 PDT
A minimal implementation of RenderThemeGtk::systemColor was merged in order to fix bug #37779 (see http://trac.webkit.org/changeset/60440). This implementation should be completed to match all the relevant CSSValue* constants with their Gtk style counterpart. Note that not all those constants map to an actual colour as defined by Gtk styles, it looks to me like the specification (http://www.w3.org/TR/CSS2/ui.html#system-colors) is largely inspired by the windows API (GetSysColor, see http://msdn.microsoft.com/en-us/library/ms724371%28VS.85%29.aspx). Therefore constants such as CSSValueAppworkspace or CSSValueBackground won't be mapped.
Attachments
Complete implementation of RenderThemeGtk::systemColor - first draft (7.64 KB, patch)
2010-06-03 08:22 PDT, Olivier Tilloy
no flags
Patch for GTK3 (7.12 KB, patch)
2013-07-01 03:44 PDT, Carlos Garcia Campos
svillar: review+
buildbot: commit-queue-
Archive of layout-test-results from APPLE-EWS-4 for win-future (834.40 KB, application/zip)
2013-07-01 19:50 PDT, Build Bot
no flags
Olivier Tilloy
Comment 1 2010-06-03 08:22:01 PDT
Created attachment 57771 [details] Complete implementation of RenderThemeGtk::systemColor - first draft I'm attaching a patch with a complete implementation of RenderThemeGtk::systemColor, largely inspired by Mozilla's implementation in nsLookAndFeel::NativeGetColor. This is a first draft that may need refining.
Martin Robinson
Comment 2 2010-12-29 16:38:46 PST
(In reply to comment #1) > Created an attachment (id=57771) [details] > Complete implementation of RenderThemeGtk::systemColor - first draft > > I'm attaching a patch with a complete implementation of RenderThemeGtk::systemColor, largely inspired by Mozilla's implementation in nsLookAndFeel::NativeGetColor. This is a first draft that may need refining. Any updates on this?
Martin Robinson
Comment 3 2010-12-29 16:40:07 PST
*** Bug 15597 has been marked as a duplicate of this bug. ***
Olivier Tilloy
Comment 4 2011-01-07 09:31:23 PST
@Martin: I haven’t looked at this issue in a while. From what I remember last time I worked on it, the patch I submitted was pretty much complete and functional, and it was ready for a review (sorry if I didn’t make it clear). Not sure it still merges My priorities have shifted away from webkit lately, but I’m willing to help get this patch reviewed and tweaked as needed. Does the patch need to be flagged to request a review?
Carlos Garcia Campos
Comment 5 2013-07-01 03:44:55 PDT
Created attachment 205794 [details] Patch for GTK3
Build Bot
Comment 6 2013-07-01 19:50:52 PDT
Comment on attachment 205794 [details] Patch for GTK3 Attachment 205794 [details] did not pass win-ews (win): Output: http://webkit-queues.appspot.com/results/1012465 New failing tests: fast/forms/select/popup-closes-on-blur.html
Build Bot
Comment 7 2013-07-01 19:50:54 PDT
Created attachment 205856 [details] Archive of layout-test-results from APPLE-EWS-4 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: APPLE-EWS-4 Port: win-future Platform: CYGWIN_NT-6.1-WOW64-1.7.20-0.266-5-3-i686-32bit
Sergio Villar Senin
Comment 8 2015-01-19 06:15:09 PST
Comment on attachment 205794 [details] Patch for GTK3 View in context: https://bugs.webkit.org/attachment.cgi?id=205794&action=review Looks good. The original file does not exist anymore but I guess migrating the changes is straightforward. > Source/WebCore/platform/gtk/RenderThemeGtk3.cpp:1026 > + return 0xFF888888; I prefer to have this magic number statically defined with some meaningful name. > Source/WebCore/platform/gtk/RenderThemeGtk3.cpp:1065 > + gtk_style_context_restore(context); Let's move this to a helper as is repeated bellow. Question: why do we need to temporarily add that class just to get the background color? > Source/WebCore/platform/gtk/RenderThemeGtk3.cpp:1091 > + gtk_style_context_restore(context); Perhaps we could use the helper above here as well, we could pass the GTK_TYPE_ and GTK_STYLE_ info as arguments.
Note You need to log in before you can comment on or make changes to this bug.