[librsvg: 5/15] Switch.draw - draw the child directly; don't use draw_node_from_stack
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/15] Switch.draw - draw the child directly; don't use draw_node_from_stack
- Date: Tue, 24 Nov 2020 18:09:17 +0000 (UTC)
commit 0334730550115af3ca046acba8a27c8124632236
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Nov 17 17:52:16 2020 -0600
Switch.draw - draw the child directly; don't use draw_node_from_stack
The children of <switch> are not ones that would be normally
accessible throug the render_layer API; they are meant to be chosen by
the <switch> itself.
src/structure.rs | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/structure.rs b/src/structure.rs
index 5cbd9374..2198f56b 100644
--- a/src/structure.rs
+++ b/src/structure.rs
@@ -74,12 +74,7 @@ impl Draw for Switch {
.filter(|c| c.is_element())
.find(|c| c.borrow_element().get_cond())
{
- dc.draw_node_from_stack(
- &child,
- an,
- &CascadedValues::new(cascaded, &child),
- clipping,
- )
+ child.draw(an, &CascadedValues::new(cascaded, &child), dc, clipping)
} else {
Ok(dc.empty_bbox())
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]