summaryrefslogtreecommitdiff
path: root/gtk/gtkcsswidgetnode.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/gtkcsswidgetnode.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/gtkcsswidgetnode.c')
-rw-r--r--gtk/gtkcsswidgetnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c
index 12e346b278..10d0334f7e 100644
--- a/gtk/gtkcsswidgetnode.c
+++ b/gtk/gtkcsswidgetnode.c
@@ -262,7 +262,7 @@ gtk_css_widget_node_get_style_provider (GtkCssNode *node)
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
if (widget_node->widget == NULL)
- return GTK_CSS_NODE_CLASS (gtk_css_widget_node_parent_class)->get_style_provider (node);
+ return NULL;
return gtk_style_context_get_style_provider (gtk_widget_get_style_context (widget_node->widget));
}