]> gitweb.michael.orlitzky.com - libsvgtiny.git/blob - src/svgtiny_css.c
f112ca30ed5e637a14968d2260eefe738372177e
[libsvgtiny.git] / src / svgtiny_css.c
1 #include <libcss/libcss.h>
2
3 #include "svgtiny.h"
4 #include "svgtiny_internal.h"
5
6 /**
7 * Resolve a relative URL to an absolute one by doing nothing. This is
8 * the simplest possible implementation of a URL resolver, needed for
9 * parsing CSS.
10 */
11 css_error svgtiny_resolve_url(void *pw,
12 const char *base, lwc_string *rel, lwc_string **abs)
13 {
14 UNUSED(pw);
15 UNUSED(base);
16
17 /* Copy the relative URL to the absolute one (the return
18 value) */
19 *abs = lwc_string_ref(rel);
20 return CSS_OK;
21 }