From 97dea9f287048685c295ba3418f1d0e540c6a10e Mon Sep 17 00:00:00 2001 From: Philip Pemberton Date: Thu, 5 Jun 2003 13:17:55 +0000 Subject: [project @ 2003-06-05 13:17:55 by philpem] Added GIF decode support svn path=/import/netsurf/; revision=160 --- render/html.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'render/html.c') diff --git a/render/html.c b/render/html.c index 8b572fd24..304de133c 100644 --- a/render/html.c +++ b/render/html.c @@ -1,5 +1,5 @@ /** - * $Id: html.c,v 1.17 2003/05/10 11:13:34 bursa Exp $ + * $Id: html.c,v 1.18 2003/06/05 13:17:55 philpem Exp $ */ #include @@ -119,7 +119,7 @@ int html_convert(struct content *c, unsigned int width, unsigned int height) if (c->active != 0) c->status = CONTENT_PENDING; - + return 0; } @@ -226,7 +226,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) } xmlFree(media); } - + /* href='...' */ if (!(href = (char *) xmlGetProp(node, (const xmlChar *) "href"))) continue; @@ -307,7 +307,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) void html_fetch_image(struct content *c, char *url, struct box *box) { struct fetch_data *fetch_data; - + /* add to object list */ c->data.html.object = xrealloc(c->data.html.object, (c->data.html.object_count + 1) * @@ -325,7 +325,8 @@ void html_fetch_image(struct content *c, char *url, struct box *box) fetchcache(url, c->url, html_image_callback, fetch_data, 0, 0, - (1 << CONTENT_JPEG) | (1 << CONTENT_PNG)); + (1 << CONTENT_JPEG) | (1 << CONTENT_PNG) | + (1 << CONTENT_GIF)); } @@ -416,7 +417,9 @@ void html_revive(struct content *c, unsigned int width, unsigned int height) fetchcache(c->data.html.object[i].url, c->url, html_image_callback, fetch_data, 0, 0, - (1 << CONTENT_JPEG) | (1 << CONTENT_PNG)); + (1 << CONTENT_JPEG) | + (1 << CONTENT_PNG) | + (1 << CONTENT_GIF)); } } -- cgit v1.2.3