NodeCreationContext: add a case for the <style> element

parent 6133971d
......@@ -52,10 +52,14 @@ impl XmlHandler for NodeCreationContext {
name: &str,
pbag: &PropertyBag,
) -> Box<XmlHandler> {
if name == "style" {
unimplemented!();
} else {
let node = self.create_node(parent, handle, name, pbag);
Box::new(NodeCreationContext { node: Some(node) })
}
}
fn end_element(&self, handle: *mut RsvgHandle, _name: &str) -> Rc<Node> {
let node = self.node.as_ref().unwrap().clone();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment