Bug 1173907 - Don't use gtk_render_activity for drawing progress chunks on GTK versions above 3.13.7. r=karlt

This commit is contained in:
Andrew Comminos 2015-07-15 11:47:00 -04:00
Родитель 174dd44881
Коммит ab856f24b0
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -2025,7 +2025,10 @@ moz_gtk_progress_chunk_paint(cairo_t *cr, GdkRectangle* rect,
} }
gtk_render_background(style, cr, rect->x, rect->y, rect->width, rect->height); gtk_render_background(style, cr, rect->x, rect->y, rect->width, rect->height);
gtk_render_activity(style, cr, rect->x, rect->y, rect->width, rect->height); // gtk_render_activity was used to render progress chunks on GTK versions
// before 3.13.7, see bug 1173907.
if (gtk_check_version(3, 13, 7))
gtk_render_activity(style, cr, rect->x, rect->y, rect->width, rect->height);
gtk_style_context_restore(style); gtk_style_context_restore(style);
return MOZ_GTK_SUCCESS; return MOZ_GTK_SUCCESS;