summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
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);