Skip to content

node: move code to NodeData

Paolo Borelli requested to merge pborelli/librsvg:node into master

Just moving code around. I want to make RsvgNode smaller moving toward the goal to either make it a trait implemented by rctree::Node or a small newtype that derefs into Node or something like that...

Basically I have the feeling that:

  1. we are now relying on adding an impl for NodeRef which is a type defined in the tree module
  2. it might be interesting to split RsvgNode into multiple traits (eg Element trait that has id(), class() etc and a Trait used when building the tree and setting attributes

Merge request reports