summaryrefslogtreecommitdiff
path: root/src/parse/properties/ui.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-01 10:35:37 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-01 10:35:37 +0000
commit94ff706d99220d915be8cedcda6b93ead998f5b8 (patch)
treef28b6eec02fb023351dbeb2610d19d7c76580757 /src/parse/properties/ui.c
parent5099ad82bbfc21bd45408bf5ca069df3ecfd0e8d (diff)
downloadlibcss-94ff706d99220d915be8cedcda6b93ead998f5b8.tar.gz
libcss-94ff706d99220d915be8cedcda6b93ead998f5b8.tar.bz2
Make all URIs absolute
svn path=/trunk/libcss/; revision=8228
Diffstat (limited to 'src/parse/properties/ui.c')
-rw-r--r--src/parse/properties/ui.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/parse/properties/ui.c b/src/parse/properties/ui.c
index 118e835..4a6c34f 100644
--- a/src/parse/properties/ui.c
+++ b/src/parse/properties/ui.c
@@ -204,7 +204,15 @@ css_error parse_cursor(css_language *c,
/* URI* */
while (token != NULL && token->type == CSS_TOKEN_URI) {
- lwc_string *uri = token->idata;
+ lwc_string *uri;
+
+ error = c->sheet->resolve(c->sheet->resolve_pw,
+ c->sheet->dictionary, c->sheet->url,
+ token->idata, &uri);
+ if (error != CSS_OK) {
+ *ctx = orig_ctx;
+ return error;
+ }
if (first == false) {
opv = CURSOR_URI;
@@ -212,7 +220,8 @@ css_error parse_cursor(css_language *c,
ptr += sizeof(opv);
}
- lwc_context_string_ref(c->sheet->dictionary, uri);
+ /* Don't ref URI -- we want to pass ownership to the
+ * bytecode */
memcpy(ptr, &uri, sizeof(uri));
ptr += sizeof(uri);