NodeCreationContext: add a case for the <style> element

parent 6133971d
...@@ -52,9 +52,13 @@ impl XmlHandler for NodeCreationContext { ...@@ -52,9 +52,13 @@ impl XmlHandler for NodeCreationContext {
name: &str, name: &str,
pbag: &PropertyBag, pbag: &PropertyBag,
) -> Box<XmlHandler> { ) -> Box<XmlHandler> {
let node = self.create_node(parent, handle, name, pbag); if name == "style" {
unimplemented!();
} else {
let node = self.create_node(parent, handle, name, pbag);
Box::new(NodeCreationContext { node: Some(node) }) Box::new(NodeCreationContext { node: Some(node) })
}
} }
fn end_element(&self, handle: *mut RsvgHandle, _name: &str) -> Rc<Node> { fn end_element(&self, handle: *mut RsvgHandle, _name: &str) -> Rc<Node> {
......
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