Revert "snapshot: merge container nodes"

This reverts commit 622a150bb4.
This commit is contained in:
Timm Bäder 2018-07-08 12:19:35 +02:00
parent 27ba2411f0
commit 9959ea98cd

View File

@ -1086,22 +1086,8 @@ gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
if (current_state)
{
if (gsk_render_node_get_node_type (node) == GSK_CONTAINER_NODE)
{
guint i, p;
for (i = 0, p = gsk_container_node_get_n_children (node); i < p; i ++)
g_ptr_array_add (snapshot->nodes,
gsk_render_node_ref (gsk_container_node_get_child (node, i)));
current_state->n_nodes += p;
/* Don't unref @node... */
}
else
{
g_ptr_array_add (snapshot->nodes, gsk_render_node_ref (node));
current_state->n_nodes ++;
}
g_ptr_array_add (snapshot->nodes, gsk_render_node_ref (node));
current_state->n_nodes ++;
}
else
{