summaryrefslogtreecommitdiff
path: root/src/structure.rs
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2021-11-04 20:14:02 -0600
committerMarge Bot <marge-bot@gnome.org>2021-11-05 03:56:55 +0000
commit7b117d2b30123c59aeb584c5898b1dee2a3a4081 (patch)
treeb75da2421b3f40d6aae97c3964f567519dbf9311 /src/structure.rs
parent96f6174818772e11f9f222f559ec30f7711977ee (diff)
downloadlibrsvg-7b117d2b30123c59aeb584c5898b1dee2a3a4081.tar.gz
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: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/626>
Diffstat (limited to 'src/structure.rs')
-rw-r--r--src/structure.rs8
1 files changed, 4 insertions, 4 deletions
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),
)
}
}