[librsvg: 32/48] create_node() - don't pass element name to new_node.set_style()



commit 7024241592080a737493ed1b26518d3cc08e11c2
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Sep 27 18:42:35 2018 -0500

    create_node() - don't pass element name to new_node.set_style()

 rsvg_internals/src/xml.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/xml.rs b/rsvg_internals/src/xml.rs
index f93a0919..324f6fe5 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -140,7 +140,7 @@ impl NodeCreationContext {
         // The "svg" node is special; it will parse its style attributes
         // until the end, in standard_element_end().
         if new_node.get_type() != NodeType::Svg {
-            new_node.parse_style_attributes(handle, name, pbag);
+            new_node.set_style(handle, pbag);
         }
 
         new_node.set_overridden_properties();


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