From 1d8b0aad719898be0f1b8a862be41c2b51075c80 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 14 Feb 2009 17:20:19 +0000 Subject: Rework handling of imported stylesheets. No longer is the client called back mid-parse. Instead, they must acquire details of and process imported stylesheets after css_stylesheet_data_done() has been called on the parent sheet. The return code of css_stylesheet_data_done() informs the client of the need to process imported sheets. svn path=/trunk/libcss/; revision=6504 --- test/dump.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test/dump.h') diff --git a/test/dump.h b/test/dump.h index 98ec1bb..4626894 100644 --- a/test/dump.h +++ b/test/dump.h @@ -87,11 +87,8 @@ void dump_rule_import(css_rule_import *s, char **buf, size_t *buflen) { char *ptr = *buf; - if (s->sheet == NULL) { - assert(0 && "No imported sheet"); - } - - ptr += sprintf(ptr, "| @import url(\"%s\")", s->sheet->url); + ptr += sprintf(ptr, "| @import url(\"%.*s\")", + (int) s->url->len, (const char *) s->url->data); /** \todo media list */ -- cgit v1.2.3