diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-29 14:45:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-29 14:45:05 +0000 |
commit | 9838246d69a3d48a8d0d286ecbfcd1faa199ae91 (patch) | |
tree | ae1fcbdbd02cfe4ed95702a517133ceb9e249f50 /test/select-auto.c | |
parent | 9a026637586cc90ce3418e945210c90313434306 (diff) | |
download | libcss-9838246d69a3d48a8d0d286ecbfcd1faa199ae91.tar.gz libcss-9838246d69a3d48a8d0d286ecbfcd1faa199ae91.tar.bz2 |
Provide hook for system colour name -> RGB conversion
svn path=/trunk/libcss/; revision=11522
Diffstat (limited to 'test/select-auto.c')
-rw-r--r-- | test/select-auto.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/test/select-auto.c b/test/select-auto.c index c81d097..12fdb5f 100644 --- a/test/select-auto.c +++ b/test/select-auto.c @@ -457,6 +457,7 @@ void css__parse_tree_data(line_ctx *ctx, const char *data, size_t len) void css__parse_sheet(line_ctx *ctx, const char *data, size_t len) { + css_stylesheet_params params; const char *p; const char *end = data + len; css_origin origin = CSS_ORIGIN_AUTHOR; @@ -491,10 +492,22 @@ void css__parse_sheet(line_ctx *ctx, const char *data, size_t len) css__parse_media_list(&p, &ignored, &media); } + params.level = CSS_LEVEL_21; + params.charset = "UTF-8"; + params.url = "foo"; + params.title = "foo"; + params.allow_quirks = false; + params.inline_style = false; + params.resolve = resolve_url; + params.resolve_pw = NULL; + params.import = NULL; + params.import_pw = NULL; + params.color = NULL; + params.color_pw = NULL; + /** \todo How are we going to handle @import? */ - assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", "foo", - false, false, myrealloc, NULL, - resolve_url, NULL, NULL, NULL, &sheet) == CSS_OK); + assert(css_stylesheet_create(¶ms, myrealloc, NULL, + &sheet) == CSS_OK); /* Extend array of sheets and append new sheet to it */ temp = realloc(ctx->sheets, |