diff options
author | Benjamin Otte <otte@redhat.com> | 2012-08-25 01:59:13 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-08-28 15:42:24 +0200 |
commit | 012526241a1024256459c127065603a5fd11cfd3 (patch) | |
tree | 9050fe32f138ff58fff2e5acb6a355cc86e34236 /gtk/gtkcssbordervalue.c | |
parent | 8ff08e7c5e7da785a37c56018b1ae4b57cb77e64 (diff) | |
download | gtk+-012526241a1024256459c127065603a5fd11cfd3.tar.gz |
cssvalue: First step of proper dependency tracking
Instead of using the EVERYTHING aka FIXME value for tdependencies,
actually compute the dependencies in a bunch of simple cases.
Diffstat (limited to 'gtk/gtkcssbordervalue.c')
-rw-r--r-- | gtk/gtkcssbordervalue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcssbordervalue.c b/gtk/gtkcssbordervalue.c index 085e3f2e40..dab46319ae 100644 --- a/gtk/gtkcssbordervalue.c +++ b/gtk/gtkcssbordervalue.c @@ -48,11 +48,10 @@ gtk_css_value_border_compute (GtkCssValue *value, GtkCssDependencies *dependencies) { GtkCssValue *computed; + GtkCssDependencies child_deps; gboolean changed = FALSE; guint i; - *dependencies = GTK_CSS_DEPENDS_ON_EVERYTHING; - computed = _gtk_css_border_value_new (NULL, NULL, NULL, NULL); computed->fill = value->fill; @@ -60,7 +59,8 @@ gtk_css_value_border_compute (GtkCssValue *value, { if (value->values[i]) { - computed->values[i] = _gtk_css_value_compute (value->values[i], property_id, context, NULL); + computed->values[i] = _gtk_css_value_compute (value->values[i], property_id, context, &child_deps); + *dependencies = _gtk_css_dependencies_union (*dependencies, child_deps); changed |= (computed->values[i] != value->values[i]); } } |