broadway: Handle offset nodes

This commit is contained in:
Alexander Larsson 2018-04-24 16:05:28 +02:00 committed by Benjamin Otte
parent b554f4be20
commit 8c5d31d11d

View File

@ -580,6 +580,15 @@ gsk_broadway_renderer_add_node (GskRenderer *renderer,
/* Bin nodes */
case GSK_OFFSET_NODE:
{
gsk_broadway_renderer_add_node (renderer, nodes, node_textures,
gsk_offset_node_get_child (node),
offset_x - gsk_offset_node_get_x_offset (node),
offset_y - gsk_offset_node_get_y_offset (node));
}
return;
case GSK_SHADOW_NODE:
{
gsize i, n_shadows = gsk_shadow_node_get_n_shadows (node);
@ -656,7 +665,6 @@ gsk_broadway_renderer_add_node (GskRenderer *renderer,
case GSK_COLOR_MATRIX_NODE:
case GSK_TEXT_NODE:
case GSK_REPEATING_LINEAR_GRADIENT_NODE:
case GSK_OFFSET_NODE:
case GSK_TRANSFORM_NODE:
case GSK_REPEAT_NODE:
case GSK_BLEND_NODE: