diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-14 17:20:19 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-14 17:20:19 +0000 |
commit | 1d8b0aad719898be0f1b8a862be41c2b51075c80 (patch) | |
tree | 1efac87b00dba4be396a3aa9ef1c45e023272ff0 /test/parse2-auto.c | |
parent | 03c0b36fdb90960b4a4c1e6f86084c850463195b (diff) | |
download | libcss-1d8b0aad719898be0f1b8a862be41c2b51075c80.tar.gz libcss-1d8b0aad719898be0f1b8a862be41c2b51075c80.tar.bz2 |
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
Diffstat (limited to 'test/parse2-auto.c')
-rw-r--r-- | test/parse2-auto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parse2-auto.c b/test/parse2-auto.c index 59ae220..80fcd24 100644 --- a/test/parse2-auto.c +++ b/test/parse2-auto.c @@ -172,7 +172,7 @@ void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen) buflen = 2 * explen; assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL, - CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, NULL, NULL, + CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, myrealloc, NULL, &sheet) == CSS_OK); error = css_stylesheet_append_data(sheet, data, len); |