summaryrefslogtreecommitdiff
path: root/gtk/gtkcsspathnode.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-17 15:18:32 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:32 +0100
commit16b8972beef20b59709114f3bff6825548f7ed52 (patch)
tree3b0c4f980ed0283be3ae940311b81daed33a8a51 /gtk/gtkcsspathnode.c
parentc0f6e746a0ae378359eb065df269d58b413160dd (diff)
downloadgtk+-16b8972beef20b59709114f3bff6825548f7ed52.tar.gz
cssnode: Change get_style_provider() vfunc
Instead of always returning a provider, allow the vfunc to return NULL to mane "use same provider as parent". This allows a bunch of optimizations.
Diffstat (limited to 'gtk/gtkcsspathnode.c')
-rw-r--r--gtk/gtkcsspathnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcsspathnode.c b/gtk/gtkcsspathnode.c
index 1fc702e22d..50a1cc3e08 100644
--- a/gtk/gtkcsspathnode.c
+++ b/gtk/gtkcsspathnode.c
@@ -107,7 +107,7 @@ gtk_css_path_node_get_style_provider (GtkCssNode *node)
GtkCssPathNode *path_node = GTK_CSS_PATH_NODE (node);
if (path_node->context == NULL)
- return GTK_CSS_NODE_CLASS (gtk_css_path_node_parent_class)->get_style_provider (node);
+ return NULL;
return gtk_style_context_get_style_provider (path_node->context);
}