ef0a0c91f1
- Update Firefox and gmp-api to 39.0 - Update Firefox ESR and libxul to 38.1.0 Changes: https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.19.2_release_notes Changes: https://www.mozilla.org/firefox/39.0/releasenotes/ Changes: https://www.mozilla.org/firefox/38.1.0/releasenotes/ MFH: 2015Q3 Security: https://vuxml.freebsd.org/freebsd/44d9daee-940c-4179-86bb-6e3ffd617869.html
46 lines
1.6 KiB
Text
46 lines
1.6 KiB
Text
commit e50e738
|
|
Author: Martin Stransky <stransky@redhat.com>
|
|
Date: Mon Mar 16 08:00:00 2015 -0400
|
|
|
|
Bug 1143686 - Gtk3 - Render scrollbar thumb with margin. r=karlt
|
|
---
|
|
widget/gtk/gtk3drawing.c | 14 ++++++++++----
|
|
1 file changed, 10 insertions(+), 4 deletions(-)
|
|
|
|
diff --git widget/gtk/gtk3drawing.c widget/gtk/gtk3drawing.c
|
|
index 17f46ab..08a58d6 100644
|
|
--- widget/gtk/gtk3drawing.c
|
|
+++ widget/gtk/gtk3drawing.c
|
|
@@ -1230,6 +1230,7 @@ moz_gtk_scrollbar_thumb_paint(GtkThemeWidgetType widget,
|
|
GtkStyleContext* style;
|
|
GtkScrollbar *scrollbar;
|
|
GtkAdjustment *adj;
|
|
+ GtkBorder margin;
|
|
|
|
ensure_scrollbar_widget();
|
|
|
|
@@ -1239,15 +1240,20 @@ moz_gtk_scrollbar_thumb_paint(GtkThemeWidgetType widget,
|
|
scrollbar = GTK_SCROLLBAR(gVertScrollbarWidget);
|
|
|
|
gtk_widget_set_direction(GTK_WIDGET(scrollbar), direction);
|
|
-
|
|
+
|
|
style = gtk_widget_get_style_context(GTK_WIDGET(scrollbar));
|
|
gtk_style_context_save(style);
|
|
-
|
|
+
|
|
gtk_style_context_add_class(style, GTK_STYLE_CLASS_SLIDER);
|
|
gtk_style_context_set_state(style, state_flags);
|
|
|
|
- gtk_render_slider(style, cr, rect->x, rect->y,
|
|
- rect->width, rect->height,
|
|
+ gtk_style_context_get_margin (style, state_flags, &margin);
|
|
+
|
|
+ gtk_render_slider(style, cr,
|
|
+ rect->x + margin.left,
|
|
+ rect->y + margin.top,
|
|
+ rect->width - margin.left - margin.right,
|
|
+ rect->height - margin.top - margin.bottom,
|
|
(widget == MOZ_GTK_SCROLLBAR_THUMB_HORIZONTAL) ?
|
|
GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATION_VERTICAL);
|
|
|