[librsvg: 6/15] draw_from_use_node - Draw the child directly, not with draw_node_from_stack




commit 2c10a6285a087db570572e370b03c9e63b6d0f60
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Nov 17 18:12:16 2020 -0600

    draw_from_use_node - Draw the child directly, not with draw_node_from_stack
    
    Same as the last case; nodes referenced from <use> are not part of the
    user-addressable layers.

 src/drawing_ctx.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index 3a331e5b..3f9c1345 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -1735,10 +1735,10 @@ impl DrawingCtx {
             cr.translate(use_rect.x0, use_rect.y0);
 
             self.with_discrete_layer(node, acquired_nodes, values, clipping, &mut |an, dc| {
-                dc.draw_node_from_stack(
-                    &child,
+                child.draw(
                     an,
                     &CascadedValues::new_from_values(&child, values),
+                    dc,
                     clipping,
                 )
             })


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]