diff options
Diffstat (limited to 'css')
-rw-r--r-- | css/css.c | 41 |
1 files changed, 18 insertions, 23 deletions
@@ -560,19 +560,15 @@ void css_atimport(struct content *c, struct css_node *node) c->data.css.import_count++; i = c->data.css.import_count - 1; 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 -#ifdef WITH_POST - , 0, 0 -#endif -#ifdef WITH_COOKIES - , false -#endif - ); - if (c->data.css.import_content[i] && - c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) + c->data.css.import_content[i] = fetchcache(c->data.css.import_url[i], + css_atimport_callback, c, (void *) i, + c->width, c->height, true, 0, 0, false); + if (c->data.css.import_content[i]) { c->active++; + fetchcache_go(c->data.css.import_content[i], c->url, + css_atimport_callback, c, (void *) i, + 0, 0, false); + } free(url); } @@ -625,18 +621,17 @@ void css_atimport_callback(content_msg msg, struct content *css, return; } 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 -#ifdef WITH_POST - , 0, 0 -#endif -#ifdef WITH_COOKIES - , false -#endif - ); - if (c->data.css.import_content[i] && - c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) + c->data.css.import_url[i], + css_atimport_callback, c, (void *) i, + css->width, css->height, true, 0, 0, + false); + if (c->data.css.import_content[i]) { c->active++; + fetchcache_go(c->data.css.import_content[i], + c->url, css_atimport_callback, + c, (void *) i, + 0, 0, false); + } break; default: |