This depends on bug #51764 since the patch for stock icons contains the initial GtkStyleContext port. I'm wondering whether we really need setTextInputBorders() method, other ports don't implement adjustTextFieldStyle() and adjustTextAreaStyle() and I don't see any difference when not using them with gtk.
Created attachment 77987 [details] Patch to use GtkStyleContext to paint text input controls
Comment on attachment 77987 [details] Patch to use GtkStyleContext to paint text input controls I think we should use adjustRepaintRect to paint exterior focus outside the actual text box rect. This will ensure that a large exterior focus doesn't shrink the text box greatly.
Created attachment 78383 [details] Updated patch using adjustRepaintRect()
Attachment 78383 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/gtk/RenderThemeGtk3.cpp']" exit_code: 1 Source/WebCore/platform/gtk/RenderThemeGtk3.cpp:139: Use 0 instead of NULL. [readability/null] [5] Source/WebCore/platform/gtk/RenderThemeGtk3.cpp:370: Use 0 instead of NULL. [readability/null] [5] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 78383 [details] Updated patch using adjustRepaintRect() Nice. GtkStyleContext really simplifies things.
Committed r75378: <http://trac.webkit.org/changeset/75378>