summaryrefslogtreecommitdiff
path: root/gtk/gtkcsswidgetnodeprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-22 23:11:22 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:32 +0100
commitdf51bc836b24a67a2238a8ae7c2876a21c91a604 (patch)
tree2a4a4533952cd2ebb44246a3a6f974f21933d878 /gtk/gtkcsswidgetnodeprivate.h
parent3d1e2a055897287cb59b3969e0742d5c7d03f003 (diff)
downloadgtk+-df51bc836b24a67a2238a8ae7c2876a21c91a604.tar.gz
cssnode: Always return correct style values
If CSS values are queried from a widget, recompute them if necessary. Do not emit style-updated until the validation phase however. This way, we don't run into performance traps when style-update causes invalidations that cause new style-updated to be emitted.
Diffstat (limited to 'gtk/gtkcsswidgetnodeprivate.h')
-rw-r--r--gtk/gtkcsswidgetnodeprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcsswidgetnodeprivate.h b/gtk/gtkcsswidgetnodeprivate.h
index 28e602006e..39dc20067e 100644
--- a/gtk/gtkcsswidgetnodeprivate.h
+++ b/gtk/gtkcsswidgetnodeprivate.h
@@ -39,6 +39,7 @@ struct _GtkCssWidgetNode
GtkWidget *widget;
guint validate_cb_id;
+ GtkBitmask *accumulated_changes;
};
struct _GtkCssWidgetNodeClass