testsuite: Replay color state nodes

This commit is contained in:
Matthias Clasen
2024-06-08 20:53:42 -04:00
parent 1e404f6625
commit 5ab831215e

View File

@@ -366,6 +366,17 @@ replay_stroke_node (GskRenderNode *node, GtkSnapshot *snapshot)
gtk_snapshot_pop (snapshot);
}
static void
replay_color_state_node (GskRenderNode *node, GtkSnapshot *snapshot)
{
GdkColorState *color_state = gsk_color_state_node_get_color_state (node);
GskRenderNode *child = gsk_color_state_node_get_child (node);
gtk_snapshot_push_color_state (snapshot, color_state);
replay_node (child, snapshot);
gtk_snapshot_pop (snapshot);
}
void
replay_node (GskRenderNode *node, GtkSnapshot *snapshot)
{
@@ -481,6 +492,10 @@ replay_node (GskRenderNode *node, GtkSnapshot *snapshot)
replay_stroke_node (node, snapshot);
break;
case GSK_COLOR_STATE_NODE:
replay_color_state_node (node, snapshot);
break;
case GSK_SUBSURFACE_NODE:
case GSK_NOT_A_RENDER_NODE:
default: