Bug 1188138 - Prevent default buttons from being drawn twice on GTK3. r=karlt

This commit is contained in:
Andrew Comminos 2015-07-27 15:08:00 -04:00
Родитель caa85e1906
Коммит c14fa3aed4
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -901,9 +901,7 @@ moz_gtk_button_paint(cairo_t *cr, GdkRectangle* rect,
y += default_top; y += default_top;
width -= (default_left + default_right); width -= (default_left + default_right);
height -= (default_top + default_bottom); height -= (default_top + default_bottom);
} } else if (relief != GTK_RELIEF_NONE || state->depressed ||
if (relief != GTK_RELIEF_NONE || state->depressed ||
(state_flags & GTK_STATE_FLAG_PRELIGHT)) { (state_flags & GTK_STATE_FLAG_PRELIGHT)) {
/* the following line can trigger an assertion (Crux theme) /* the following line can trigger an assertion (Crux theme)
file ../../gdk/gdkwindow.c: line 1846 (gdk_window_clear_area): file ../../gdk/gdkwindow.c: line 1846 (gdk_window_clear_area):