summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
Diffstat (limited to 'css')
-rw-r--r--css/css.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/css/css.c b/css/css.c
index 45b3485d8..c46214669 100644
--- a/css/css.c
+++ b/css/css.c
@@ -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++;