b=806583 don't draw the entry background outside its widget r=roc

--HG--
extra : transplant_source : %1D1%E5x6%22%C2%9A%1E%B5%A6%81%1E%B0%B5%BF%D8J%13k
This commit is contained in:
Karl Tomlinson 2012-11-07 10:52:36 +13:00
parent c553a32f09
commit 3047830763

View File

@ -1606,8 +1606,13 @@ moz_gtk_entry_paint(GdkDrawable* drawable, GdkRectangle* rect,
if (theme_honors_transparency) {
g_object_set_data(G_OBJECT(widget), "transparent-bg-hint", GINT_TO_POINTER(TRUE));
} else {
gdk_draw_rectangle(drawable, style->base_gc[bg_state], TRUE,
cliprect->x, cliprect->y, cliprect->width, cliprect->height);
GdkRectangle clipped_rect;
gdk_rectangle_intersect(rect, cliprect, &clipped_rect);
if (clipped_rect.width != 0) {
gdk_draw_rectangle(drawable, style->base_gc[bg_state], TRUE,
clipped_rect.x, clipped_rect.y,
clipped_rect.width, clipped_rect.height);
}
g_object_set_data(G_OBJECT(widget), "transparent-bg-hint", GINT_TO_POINTER(FALSE));
}