diff options
author | Benjamin Otte <otte@redhat.com> | 2016-01-16 04:48:58 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-01-16 23:58:37 +0100 |
commit | 024429f76fc605e834fef3ca654a0d0cdaac1dfa (patch) | |
tree | 83a0fa80a60241556d3484deef49f9898f1f5f43 /gtk/gtkcssnodestylecacheprivate.h | |
parent | 5d562b6a2aca6c1d0db93286eb7eb719fe2e3c98 (diff) | |
download | gtk+-024429f76fc605e834fef3ca654a0d0cdaac1dfa.tar.gz |
cssnode: Implement the style cache
This essentially copies the previous cache implementation. With one
caveat: It is now attached to and maintained by the CssNode, not by the
CssStyle.
And this is important because styles may be reused in incompatible
situations which would cause cache collisions and lead to broken CSS in
weird situations.
Diffstat (limited to 'gtk/gtkcssnodestylecacheprivate.h')
-rw-r--r-- | gtk/gtkcssnodestylecacheprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssnodestylecacheprivate.h b/gtk/gtkcssnodestylecacheprivate.h index c406fbf0ee..cef1ec2bff 100644 --- a/gtk/gtkcssnodestylecacheprivate.h +++ b/gtk/gtkcssnodestylecacheprivate.h @@ -18,6 +18,7 @@ #ifndef __GTK_CSS_NODE_STYLE_CACHE_PRIVATE_H__ #define __GTK_CSS_NODE_STYLE_CACHE_PRIVATE_H__ +#include "gtkcssnodedeclarationprivate.h" #include "gtkcssstyleprivate.h" G_BEGIN_DECLS @@ -25,6 +26,7 @@ G_BEGIN_DECLS typedef struct _GtkCssNodeStyleCache GtkCssNodeStyleCache; GtkCssNodeStyleCache * gtk_css_node_style_cache_new (GtkCssStyle *style); +GtkCssNodeStyleCache * gtk_css_node_style_cache_ref (GtkCssNodeStyleCache *cache); void gtk_css_node_style_cache_unref (GtkCssNodeStyleCache *cache); GtkCssStyle * gtk_css_node_style_cache_get_style (GtkCssNodeStyleCache *cache); |