From c14fa3aed452d20d7ec082c8426447222391f206 Mon Sep 17 00:00:00 2001 From: Andrew Comminos Date: Mon, 27 Jul 2015 15:08:00 -0400 Subject: [PATCH] Bug 1188138 - Prevent default buttons from being drawn twice on GTK3. r=karlt --- widget/gtk/gtk3drawing.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/widget/gtk/gtk3drawing.c b/widget/gtk/gtk3drawing.c index e0b19a3c582b..d4f0c551a30f 100644 --- a/widget/gtk/gtk3drawing.c +++ b/widget/gtk/gtk3drawing.c @@ -901,9 +901,7 @@ moz_gtk_button_paint(cairo_t *cr, GdkRectangle* rect, y += default_top; width -= (default_left + default_right); height -= (default_top + default_bottom); - } - - if (relief != GTK_RELIEF_NONE || state->depressed || + } else if (relief != GTK_RELIEF_NONE || state->depressed || (state_flags & GTK_STATE_FLAG_PRELIGHT)) { /* the following line can trigger an assertion (Crux theme) file ../../gdk/gdkwindow.c: line 1846 (gdk_window_clear_area):