diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-01-12 20:56:08 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-01-12 20:56:08 +0000 |
commit | 46e3a946d7b2f7d68f3753a37c6f68a732a36f01 (patch) | |
tree | 7fb3b470499776274246cb261b13785ecd254e6e /test/parse-auto.c | |
parent | 41d14d090b1ce6b34865c12b3d1c980bd0fa36e8 (diff) | |
download | libcss-46e3a946d7b2f7d68f3753a37c6f68a732a36f01.tar.gz libcss-46e3a946d7b2f7d68f3753a37c6f68a732a36f01.tar.bz2 |
Origin and media are not properties of the stylesheet.
They are properties of the context in which the stylesheet is used.
Therefore, for top-level sheets, this information must be provided at selection
time. For child sheets, the origin is inherited from their parent and the
applicable media types are specified on the linking mechanism.
svn path=/trunk/libcss/; revision=9802
Diffstat (limited to 'test/parse-auto.c')
-rw-r--r-- | test/parse-auto.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parse-auto.c b/test/parse-auto.c index 135696b..070f8db 100644 --- a/test/parse-auto.c +++ b/test/parse-auto.c @@ -324,8 +324,8 @@ void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen) lwc_context_ref(ctx); assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL, - CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false, false, ctx, - myrealloc, NULL, resolve_url, NULL, &sheet) == CSS_OK); + false, false, ctx, myrealloc, NULL, resolve_url, NULL, + &sheet) == CSS_OK); error = css_stylesheet_append_data(sheet, data, len); if (error != CSS_OK && error != CSS_NEEDDATA) { @@ -353,9 +353,9 @@ void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen) buf[lwc_string_length(url)] = '\0'; assert(css_stylesheet_create(CSS_LEVEL_21, - "UTF-8", buf, NULL, CSS_ORIGIN_AUTHOR, - media, false, false, ctx, myrealloc, NULL, - resolve_url, NULL, &import) == CSS_OK); + "UTF-8", buf, NULL, false, false, ctx, + myrealloc, NULL, resolve_url, NULL, + &import) == CSS_OK); assert(css_stylesheet_register_import(sheet, import) == CSS_OK); |