Bug 43760

Summary: [GTK] Inputs of type 'search' have weird looking checkboxes instead of search/clear icons
Product: WebKit Reporter: Gustavo Noronha (kov) <gustavo>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: mrobinson
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Description Flags
proposed patch none

Description Gustavo Noronha (kov) 2010-08-09 17:08:14 PDT
Subject says it all. If you have, say, <input type="search" results="0"> this should be drawing a nice search icon in the left corner of the entry, and a clear icon in the right corner, when something is entered, but we get weird checkboxes instead.
Comment 1 Gustavo Noronha (kov) 2010-08-09 17:13:39 PDT
Created attachment 63958 [details]
proposed patch
Comment 2 Xan Lopez 2010-08-10 08:36:07 PDT
Comment on attachment 63958 [details]
proposed patch

Comment 3 Martin Robinson 2010-08-10 09:38:47 PDT
I think it might be good to make these icons members of the RenderTheme, much like the images used for media buttons. What do you think?
Comment 4 Gustavo Noronha (kov) 2010-08-10 09:49:53 PDT
Oops, sorry Martin, I just landed r65074 before reading your comment. I thought about doing it that way, but I didn't really see advantages to adding the complexity, do you see any advantage in having member variables?
Comment 5 Gustavo Noronha (kov) 2010-08-10 09:50:32 PDT
Comment on attachment 63958 [details]
proposed patch

Landed as r65074. I'm leaving the bug open while we explore Martin's suggestion.
Comment 6 Martin Robinson 2010-08-11 16:21:08 PDT
The reason I suggested was in case we could track changes to the icon theme. Perhaps we cannot, but either way this could easily be a followup patch. I'll close this issue for now! :)