diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-01-05 02:10:59 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-01-05 02:10:59 +0000 |
commit | 62245d13ec60e3c0fc78221f0a8f754f33c2b6a1 (patch) | |
tree | 5bbe5b8a63941c2d3b7f71fc53ceedcbc1d92cd6 /css | |
parent | 91e767cdfa11225dd370471892000e107bb06726 (diff) | |
download | netsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.gz netsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.bz2 |
[project @ 2004-01-05 02:10:59 by jmb]
Add ability to turn off browser features in build.
This may be useful when hunting down bugs.
svn path=/import/netsurf/; revision=480
Diffstat (limited to 'css')
-rw-r--r-- | css/css.c | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -11,6 +11,7 @@ #include <strings.h> #define CSS_INTERNALS #undef NDEBUG +#include "netsurf/utils/config.h" #include "netsurf/content/content.h" #include "netsurf/content/fetch.h" #include "netsurf/content/fetchcache.h" @@ -169,7 +170,11 @@ void css_revive(struct content *c, unsigned int width, unsigned int height) c->data.css.import_content[i] = fetchcache( c->data.css.import_url[i], c->url, css_atimport_callback, c, (void*)i, - c->width, c->height, true, 0, 0, false); + c->width, c->height, true, 0, 0 +#ifdef WITH_COOKIES + , false +#endif + ); if (c->data.css.import_content[i] == 0) continue; if (c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) @@ -335,7 +340,11 @@ void css_atimport(struct content *c, struct css_node *node) c->data.css.import_url[i] = url1; c->data.css.import_content[i] = fetchcache( c->data.css.import_url[i], c->url, css_atimport_callback, - c, (void*)i, c->width, c->height, true, 0, 0, false); + c, (void*)i, c->width, c->height, true, 0, 0 +#ifdef WITH_COOKIES + , false +#endif + ); if (c->data.css.import_content[i] && c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) c->active++; @@ -383,7 +392,11 @@ void css_atimport_callback(content_msg msg, struct content *css, c->data.css.import_url[i] = xstrdup(error); c->data.css.import_content[i] = fetchcache( c->data.css.import_url[i], c->url, css_atimport_callback, - c, (void*)i, css->width, css->height, true, 0, 0, false); + c, (void*)i, css->width, css->height, true, 0, 0 +#ifdef WITH_COOKIES + , false +#endif + ); if (c->data.css.import_content[i] && c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) c->active++; |