testsuite: Replay shadow nodes properly

Use the new apis for this.
This commit is contained in:
Matthias Clasen 2024-08-05 13:58:15 -04:00
parent ff02665407
commit 92c119e12c

View File

@ -219,10 +219,10 @@ replay_shadow_node (GskRenderNode *node, GtkSnapshot *snapshot)
{
gsize n_shadows = gsk_shadow_node_get_n_shadows (node);
/* Hack: we know GskShadowNode stores shadows in a contiguous array. */
const GskShadow *shadow = gsk_shadow_node_get_shadow (node, 0);
const GskShadow2 *shadow = gsk_shadow_node_get_shadow2 (node, 0);
GskRenderNode *child = gsk_shadow_node_get_child (node);
gtk_snapshot_push_shadow (snapshot, shadow, n_shadows);
gtk_snapshot_push_shadow2 (snapshot, shadow, n_shadows);
replay_node (child, snapshot);
gtk_snapshot_pop (snapshot);
}