[Webkit-unassigned] [Bug 52327] [GTK] Move text field painting out of gtk2drawing.c

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 13 10:35:10 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=52327





--- Comment #3 from Martin Robinson <mrobinson at webkit.org>  2011-01-13 10:35:10 PST ---
(In reply to comment #2)
> (From update of attachment 78773 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=78773&action=review
> 
> > Source/WebCore/platform/gtk/RenderThemeGtk2.cpp:363
> > +    backgroundRect.inflateX(-style->xthickness);
> > +    backgroundRect.inflateY(-style->ythickness);
> 
> GTK+ doesn't take into account thickness (only when drawing spin buttons) when drawing both bg and frame, so I think we can use the same rectangle. See gtk+ code:

After talking with Carlos, we agreed that this is the right approach to take (though messy). I'll upload a patch which explains the reasoning a bit more clearly via comments.

> http://git.gnome.org/browse/gtk+/tree/gtk/gtkentry.c?h=gtk-2-24#n3282
> http://git.gnome.org/browse/gtk+/tree/gtk/gtkentry.c?h=gtk-2-24#n3440
> 
> > Source/WebCore/platform/gtk/RenderThemeGtk2.cpp:369
> > +    gboolean interiorFocus = 0;

Removed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list