summaryrefslogtreecommitdiffstats
path: root/widget/gtk/gtk3drawing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widget/gtk/gtk3drawing.cpp')
-rw-r--r--widget/gtk/gtk3drawing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/gtk/gtk3drawing.cpp b/widget/gtk/gtk3drawing.cpp
index 6a0c08782..3662851a7 100644
--- a/widget/gtk/gtk3drawing.cpp
+++ b/widget/gtk/gtk3drawing.cpp
@@ -1907,12 +1907,12 @@ moz_gtk_check_menu_item_paint(cairo_t *cr, GdkRectangle* rect,
"indicator-size", &indicator_size,
"horizontal-padding", &horizontal_padding,
NULL);
+ gtk_style_context_get_padding(style, state_flags, &padding);
ReleaseStyleContext(style);
style = ClaimStyleContext(isradio ? MOZ_GTK_RADIOMENUITEM :
MOZ_GTK_CHECKMENUITEM,
direction, state_flags);
- gtk_style_context_get_padding(style, state_flags, &padding);
gint offset = padding.left + 2;
if (direction == GTK_TEXT_DIR_RTL) {