diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-11 13:40:13 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-01-18 08:49:51 +0100 |
commit | 24d8c0a7dccc12edc97753049c1b7765dd4d5a27 (patch) | |
tree | ae438868d480f52b0d8b9eadf7ce185446b3362c /gtk/gtkcssstringvalue.c | |
parent | ba08f5e67da5dcb0bb68e23f50c37091846ce682 (diff) | |
download | gtk+-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.c | 2 |
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, >K_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, >K_CSS_VALUE_IDENT); result->string = ident; + result->is_computed = TRUE; return result; } |