[librsvg: 4/27] Just pass the node name to DrawingCtx.run_filter, not the whole node




commit c3d9acca5ed10b4d89ffdd14ef18947c97c82fc3
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Mar 4 19:16:53 2021 -0600

    Just pass the node name to DrawingCtx.run_filter, not the whole node
    
    Same as before, it's just needed for a log message.

 src/drawing_ctx.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index a72e0155..49bb5d81 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -906,7 +906,7 @@ impl DrawingCtx {
                                 self.run_filter(
                                     acquired_nodes,
                                     &f,
-                                    node,
+                                    &node_name,
                                     values,
                                     surface,
                                     node_bbox,
@@ -928,7 +928,7 @@ impl DrawingCtx {
         &mut self,
         acquired_nodes: &mut AcquiredNodes<'_>,
         filter_uri: &NodeId,
-        node: &Node,
+        node_name: &str,
         values: &ComputedValues,
         child_surface: SharedImageSurface,
         node_bbox: BoundingBox,
@@ -955,7 +955,7 @@ impl DrawingCtx {
                     _ => {
                         rsvg_log!(
                             "element {} will not be filtered since \"{}\" is not a filter",
-                            node,
+                            node_name,
                             filter_uri,
                         );
                     }
@@ -964,7 +964,7 @@ impl DrawingCtx {
             _ => {
                 rsvg_log!(
                     "element {} will not be filtered since its filter \"{}\" was not found",
-                    node,
+                    node_name,
                     filter_uri,
                 );
             }


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