diff options
Diffstat (limited to 'src/structure.rs')
-rw-r--r-- | src/structure.rs | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/structure.rs b/src/structure.rs index 8fb48c1b..da045728 100644 --- a/src/structure.rs +++ b/src/structure.rs @@ -36,7 +36,13 @@ impl Draw for Group { let values = cascaded.get(); let elt = node.borrow_element(); - let stacking_ctx = StackingContext::new(acquired_nodes, &elt, values.transform(), values); + let stacking_ctx = StackingContext::new( + draw_ctx.session(), + acquired_nodes, + &elt, + values.transform(), + values, + ); draw_ctx.with_discrete_layer( &stacking_ctx, @@ -77,7 +83,13 @@ impl Draw for Switch { let values = cascaded.get(); let elt = node.borrow_element(); - let stacking_ctx = StackingContext::new(acquired_nodes, &elt, values.transform(), values); + let stacking_ctx = StackingContext::new( + draw_ctx.session(), + acquired_nodes, + &elt, + values.transform(), + values, + ); draw_ctx.with_discrete_layer( &stacking_ctx, @@ -279,7 +291,13 @@ impl Draw for Svg { let values = cascaded.get(); let elt = node.borrow_element(); - let stacking_ctx = StackingContext::new(acquired_nodes, &elt, values.transform(), values); + let stacking_ctx = StackingContext::new( + draw_ctx.session(), + acquired_nodes, + &elt, + values.transform(), + values, + ); draw_ctx.with_discrete_layer( &stacking_ctx, @@ -575,6 +593,7 @@ impl Draw for Link { }; let stacking_ctx = StackingContext::new_with_link( + draw_ctx.session(), acquired_nodes, &elt, values.transform(), |