From 7b117d2b30123c59aeb584c5898b1dee2a3a4081 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 4 Nov 2021 20:14:02 -0600 Subject: Pass the DrawingCtx's current transform to the draw_fn callback of with_discrete_layer() It is not used yet, but text.rs will use it instead of asking draw_ctx.get_transform(). Part-of: --- src/structure.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/structure.rs') diff --git a/src/structure.rs b/src/structure.rs index f3e5477d..3fd90a40 100644 --- a/src/structure.rs +++ b/src/structure.rs @@ -43,7 +43,7 @@ impl Draw for Group { values, clipping, None, - &mut |an, dc| node.draw_children(an, cascaded, dc, clipping), + &mut |an, dc, _transform| node.draw_children(an, cascaded, dc, clipping), ) } } @@ -84,7 +84,7 @@ impl Draw for Switch { values, clipping, None, - &mut |an, dc| { + &mut |an, dc, _transform| { if let Some(child) = node.children().filter(|c| c.is_element()).find(|c| { let elt = c.borrow_element(); elt.get_cond(dc.user_language()) && !elt.is_in_error() @@ -276,7 +276,7 @@ impl Draw for Svg { values, clipping, None, - &mut |an, dc| { + &mut |an, dc, _transform| { let _params = self.push_viewport(node, cascaded, dc); node.draw_children(an, cascaded, dc, clipping) }, @@ -575,7 +575,7 @@ impl Draw for Link { values, clipping, None, - &mut |an, dc| node.draw_children(an, &cascaded, dc, clipping), + &mut |an, dc, _transform| node.draw_children(an, &cascaded, dc, clipping), ) } } -- cgit v1.2.1