diff options
Diffstat (limited to 'WebCore/platform/gtk/gtk3drawing.c')
-rw-r--r-- | WebCore/platform/gtk/gtk3drawing.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/WebCore/platform/gtk/gtk3drawing.c b/WebCore/platform/gtk/gtk3drawing.c index dda110d..880eb6d 100644 --- a/WebCore/platform/gtk/gtk3drawing.c +++ b/WebCore/platform/gtk/gtk3drawing.c @@ -642,8 +642,6 @@ static gint moz_gtk_scrolled_window_paint(cairo_t* cr, GdkRectangle* rect, GtkWidgetState* state) { - GtkStateType state_type = ConvertGtkState(state); - GtkShadowType shadow_type = (state->active) ? GTK_SHADOW_IN : GTK_SHADOW_OUT; GtkStyle* style; GtkAllocation allocation; GtkWidget* widget; @@ -659,9 +657,9 @@ moz_gtk_scrolled_window_paint(cairo_t* cr, GdkRectangle* rect, gtk_widget_set_allocation(widget, &allocation); style = gtk_widget_get_style(widget); - gtk_paint_box(style, cr, state_type, shadow_type, - widget, "scrolled_window", rect->x - 1, rect->y - 1, - rect->width + 2, rect->height + 2); + gtk_paint_shadow(style, cr, GTK_STATE_NORMAL, GTK_SHADOW_IN, + widget, "scrolled_window", rect->x , rect->y, + rect->width, rect->height); return MOZ_GTK_SUCCESS; } |