Define a stub relative-URL resolver that assumes all URLs are absolute
and returns them unmodified. Some method of doing this is required by
libcss. At the moment, libcss does not support any SVG properties that
take url() values, so not much is lost.
--- /dev/null
+#include <libcss/libcss.h>
+
+#include "svgtiny.h"
+#include "svgtiny_internal.h"
+
+/**
+ * Resolve a relative URL to an absolute one by doing nothing. This is
+ * the simplest possible implementation of a URL resolver, needed for
+ * parsing CSS.
+ */
+css_error svgtiny_resolve_url(void *pw,
+ const char *base, lwc_string *rel, lwc_string **abs)
+{
+ UNUSED(pw);
+ UNUSED(base);
+
+ /* Copy the relative URL to the absolute one (the return
+ value) */
+ *abs = lwc_string_ref(rel);
+ return CSS_OK;
+}