From 5c310d84dc6153b62e33d5aa28a1f75e2e776ea6 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 29 Aug 2003 12:57:14 +0000 Subject: [project @ 2003-08-29 12:57:14 by bursa] Better handling of server HTTP errors. svn path=/import/netsurf/; revision=259 --- render/html.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'render') diff --git a/render/html.c b/render/html.c index a6e6d9e7d..e41a61633 100644 --- a/render/html.c +++ b/render/html.c @@ -181,7 +181,7 @@ void html_convert_css_callback(content_msg msg, struct content *css, c->active--; c->data.html.stylesheet_content[i] = fetchcache( error, c->url, html_convert_css_callback, - c, i, css->width, css->height); + c, i, css->width, css->height, true); if (c->data.html.stylesheet_content[i] != 0 && c->data.html.stylesheet_content[i]->status != CONTENT_STATUS_DONE) c->active++; @@ -234,7 +234,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) #endif c->url, html_convert_css_callback, - c, 0, c->width, c->height); + c, 0, c->width, c->height, true); assert(c->data.html.stylesheet_content[0] != 0); if (c->data.html.stylesheet_content[0]->status != CONTENT_STATUS_DONE) c->active++; @@ -285,7 +285,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) (i + 1) * sizeof(*c->data.html.stylesheet_content)); c->data.html.stylesheet_content[i] = fetchcache(url, c->url, html_convert_css_callback, c, i, - c->width, c->height); + c->width, c->height, true); if (c->data.html.stylesheet_content[i] && c->data.html.stylesheet_content[i]->status != CONTENT_STATUS_DONE) c->active++; @@ -368,7 +368,7 @@ void html_fetch_object(struct content *c, char *url, struct box *box) c->data.html.object[i].content = fetchcache(url, c->url, html_object_callback, c, i, - c->width, c->height); /* we don't know the object's + c->width, c->height, true); /* we don't know the object's dimensions yet; use parent's as an estimate */ if (c->data.html.object[i].content) { @@ -463,7 +463,7 @@ void html_object_callback(content_msg msg, struct content *object, c->data.html.object[i].url = xstrdup(error); c->data.html.object[i].content = fetchcache( error, c->url, html_object_callback, - c, i, 0, 0); + c, i, 0, 0, true); if (c->data.html.object[i].content && c->data.html.object[i].content->status != CONTENT_STATUS_DONE) c->active++; @@ -530,7 +530,7 @@ void html_revive(struct content *c, unsigned int width, unsigned int height) c->data.html.object[i].content = fetchcache( c->data.html.object[i].url, c->url, html_object_callback, - c, i, 0, 0); + c, i, 0, 0, true); if (c->data.html.object[i].content && c->data.html.object[i].content->status != CONTENT_STATUS_DONE) c->active++; -- cgit v1.2.3