Code

fix node counting for "moveto"-only paths.
[inkscape.git] / src / xml / croco-node-iface.cpp
index 0464e4fb7c6a9e067b62975fc22811fef7919643..db98e3d016d4d6765edc87bdc4200e88a84ac1d1 100644 (file)
@@ -1,6 +1,10 @@
+
+#include <cstring>
+#include <string>
+#include <glib/gstrfuncs.h>
+
 #include "xml/croco-node-iface.h"
 #include "xml/node.h"
-#include <glib/gstrfuncs.h>
 
 static char const *
 local_part(char const *const qname)
@@ -41,6 +45,12 @@ static char const *get_local_name(CRXMLNodePtr n) { return local_part(static_cas
 static gboolean is_element_node(CRXMLNodePtr n) { return static_cast<Node const *>(n)->type() == ELEMENT_NODE; }
 }
 
+/**
+ * @brief Interface for XML nodes used by libcroco
+ *
+ * This structure defines operations on Inkscape::XML::Node used by the libcroco
+ * CSS parsing library.
+ */
 CRNodeIface const croco_node_iface = {
     get_parent,
     get_first_child,