diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-03 15:56:47 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-03 15:56:47 +0000 |
commit | 36eff6da2bfe5b183c2b4876bb2afe9dedec9b39 (patch) | |
tree | 6cc96c71499d22745947113db5c6fc118c286d1f /render/imagemap.c | |
parent | a595d7c4bbe44f7de6c565a4fbbdcff735f0ce99 (diff) | |
download | netsurf-36eff6da2bfe5b183c2b4876bb2afe9dedec9b39.tar.gz netsurf-36eff6da2bfe5b183c2b4876bb2afe9dedec9b39.tar.bz2 |
Port more internals to nsurl. Front ends may need updating.
svn path=/trunk/netsurf/; revision=12926
Diffstat (limited to 'render/imagemap.c')
-rw-r--r-- | render/imagemap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/render/imagemap.c b/render/imagemap.c index 7632b458c..87002fd3d 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -77,7 +77,7 @@ static bool imagemap_add(html_content *c, const char *key, static bool imagemap_create(html_content *c); static bool imagemap_extract_map(xmlNode *node, html_content *c, struct mapentry **entry); -static bool imagemap_addtolist(xmlNode *n, char *base_url, +static bool imagemap_addtolist(xmlNode *n, const char *base_url, struct mapentry **entry); static void imagemap_freelist(struct mapentry *list); static unsigned int imagemap_hash(const char *key); @@ -316,7 +316,7 @@ bool imagemap_extract_map(xmlNode *node, html_content *c, */ if (strcmp((const char *) node->name, "area") == 0 || strcmp((const char *) node->name, "a") == 0) { - if (imagemap_addtolist(node, c->base_url, + if (imagemap_addtolist(node, nsurl_access(c->base_url), entry) == false) return false; } @@ -341,7 +341,8 @@ bool imagemap_extract_map(xmlNode *node, html_content *c, * \param entry Pointer to list of entries * \return false on memory exhaustion, true otherwise */ -bool imagemap_addtolist(xmlNode *n, char *base_url, struct mapentry **entry) +bool imagemap_addtolist(xmlNode *n, const char *base_url, + struct mapentry **entry) { char *shape, *coords = NULL, *href, *target = NULL; struct mapentry *new_map, *temp; |