testsuite: Update replay nodes

We can't currently recreate color nodes with public api, so cheat
and reuse the node we got.
This commit is contained in:
Matthias Clasen 2024-08-04 22:53:08 -04:00
parent 87e9c940a4
commit d5ae94ca5d

View File

@ -25,11 +25,8 @@ replay_cairo_node (GskRenderNode *node, GtkSnapshot *snapshot)
static void
replay_color_node (GskRenderNode *node, GtkSnapshot *snapshot)
{
graphene_rect_t bounds;
gsk_render_node_get_bounds (node, &bounds);
gtk_snapshot_append_color (snapshot,
gsk_color_node_get_color (node),
&bounds);
/* FIXME: can't recreate color nodes without gsk_color_node_new2 */
gtk_snapshot_append_node (snapshot, node);
}
static void