summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstringvalue.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-01-11 13:40:13 +0100
committerTimm Bäder <mail@baedert.org>2020-01-18 08:49:51 +0100
commit24d8c0a7dccc12edc97753049c1b7765dd4d5a27 (patch)
treeae438868d480f52b0d8b9eadf7ce185446b3362c /gtk/gtkcssstringvalue.c
parentba08f5e67da5dcb0bb68e23f50c37091846ce682 (diff)
downloadgtk+-24d8c0a7dccc12edc97753049c1b7765dd4d5a27.tar.gz
css: Set the is_computed flag for more values
With these changes, we skip roughly 85% of compute() calls during widget-factory startup
Diffstat (limited to 'gtk/gtkcssstringvalue.c')
-rw-r--r--gtk/gtkcssstringvalue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssstringvalue.c b/gtk/gtkcssstringvalue.c
index 286b86e0d9..c211c33afa 100644
--- a/gtk/gtkcssstringvalue.c
+++ b/gtk/gtkcssstringvalue.c
@@ -151,6 +151,7 @@ _gtk_css_string_value_new_take (char *string)
result = _gtk_css_value_new (GtkCssValue, &GTK_CSS_VALUE_STRING);
result->string = string;
+ result->is_computed = TRUE;
return result;
}
@@ -191,6 +192,7 @@ _gtk_css_ident_value_new_take (char *ident)
result = _gtk_css_value_new (GtkCssValue, &GTK_CSS_VALUE_IDENT);
result->string = ident;
+ result->is_computed = TRUE;
return result;
}