summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-03-26 22:16:31 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-03-26 22:16:31 +0000
commit4b38a2d61a0d46485c885529a054a5bacb014c1d (patch)
tree0cce5903ac586fb7f90e14055df3872f7057c1c8 /render/html.c
parent83b08353412d136d02266206dc2ec025477f70c3 (diff)
downloadnetsurf-4b38a2d61a0d46485c885529a054a5bacb014c1d.tar.gz
netsurf-4b38a2d61a0d46485c885529a054a5bacb014c1d.tar.bz2
[project @ 2004-03-26 22:16:31 by jmb]
Imagemap support svn path=/import/netsurf/; revision=671
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c
index e028e523d..9ca025156 100644
--- a/render/html.c
+++ b/render/html.c
@@ -18,6 +18,7 @@
#include "netsurf/content/content.h"
#include "netsurf/content/fetch.h"
#include "netsurf/content/fetchcache.h"
+#include "netsurf/desktop/imagemap.h"
#ifdef riscos
#include "netsurf/desktop/gui.h"
#endif
@@ -180,6 +181,10 @@ int html_convert(struct content *c, unsigned int width, unsigned int height)
xml_to_box(html, c);
/*box_dump(c->data.html.layout->children, 0);*/
+ /* extract image maps - can't do this sensibly in xml_to_box */
+ imagemap_extract(html, c);
+ /*imagemap_dump(c);*/
+
/* XML tree not required past this point */
xmlFreeDoc(document);
@@ -752,6 +757,8 @@ void html_destroy(struct content *c)
free(c->title);
+ imagemap_destroy(c);
+
if (c->data.html.parser)
htmlFreeParserCtxt(c->data.html.parser);