diff options
author | James Bursa <james@netsurf-browser.org> | 2003-06-17 19:24:21 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-06-17 19:24:21 +0000 |
commit | 0c0ff3c59631d0968c888279195ea40d4a7fd824 (patch) | |
tree | f94b64c20bc361664de61ef8993be7693ad2a08d /render/box.c | |
parent | ce6dbbb5db1d4ffe77ca99411ddb2d19694eff9c (diff) | |
download | netsurf-0c0ff3c59631d0968c888279195ea40d4a7fd824.tar.gz netsurf-0c0ff3c59631d0968c888279195ea40d4a7fd824.tar.bz2 |
[project @ 2003-06-17 19:24:20 by bursa]
Change fetchcache system to store loading contents in cache.
svn path=/import/netsurf/; revision=180
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/render/box.c b/render/box.c index af1c88c9e..5d44a305c 100644 --- a/render/box.c +++ b/render/box.c @@ -1,5 +1,5 @@ /** - * $Id: box.c,v 1.50 2003/06/07 22:24:22 jmb Exp $ + * $Id: box.c,v 1.51 2003/06/17 19:24:21 bursa Exp $ */ #include <assert.h> @@ -10,13 +10,15 @@ #include "libxml/HTMLparser.h" #include "netsurf/content/fetchcache.h" #include "netsurf/css/css.h" -#include "netsurf/desktop/gui.h" #include "netsurf/render/box.h" +#ifdef riscos +#include "netsurf/desktop/gui.h" #include "netsurf/riscos/font.h" +#endif #include "netsurf/riscos/plugin.h" +#define NDEBUG #include "netsurf/utils/log.h" #include "netsurf/utils/utils.h" -//#define NDEBUG /** * internal functions @@ -1052,7 +1054,7 @@ struct box* box_image(xmlNode *n, struct content *content, xmlFree(s); /* start fetch */ - html_fetch_image(content, url, box); + html_fetch_object(content, url, box); return box; } @@ -1368,7 +1370,7 @@ struct form* box_form(xmlNode* n) struct form* form; char* s; - form = xcalloc(1, sizeof(struct form*)); + form = xcalloc(1, sizeof(*form)); if ((s = (char *) xmlGetProp(n, (const xmlChar *) "action"))) { form->action = s; |