From a23bc88557f53080dcd6cf59bf024d230f4439b7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 1 Dec 2012 14:00:24 +0100 Subject: [PATCH] css: Fix dependencies for font lookup 'larger' and 'smaller' depend on the parent value. D'oh. --- gtk/gtkcssenumvalue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c index e81b7b2d8a..77d5e8eaba 100644 --- a/gtk/gtkcssenumvalue.c +++ b/gtk/gtkcssenumvalue.c @@ -197,6 +197,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value, font_size = get_default_font_size (provider) * 2; break; case GTK_CSS_FONT_SIZE_SMALLER: + *dependencies = GTK_CSS_DEPENDS_ON_PARENT; if (parent_values) font_size = _gtk_css_number_value_get (_gtk_css_computed_values_get_value (parent_values, GTK_CSS_PROPERTY_FONT_SIZE), 100); else @@ -205,6 +206,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value, font_size *= 1.2; break; case GTK_CSS_FONT_SIZE_LARGER: + *dependencies = GTK_CSS_DEPENDS_ON_PARENT; if (parent_values) font_size = _gtk_css_number_value_get (_gtk_css_computed_values_get_value (parent_values, GTK_CSS_PROPERTY_FONT_SIZE), 100); else