From 46e3a946d7b2f7d68f3753a37c6f68a732a36f01 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 12 Jan 2010 20:56:08 +0000 Subject: 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 --- test/parse2-auto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/parse2-auto.c') diff --git a/test/parse2-auto.c b/test/parse2-auto.c index 57b1688..2a89ef4 100644 --- a/test/parse2-auto.c +++ b/test/parse2-auto.c @@ -188,8 +188,8 @@ void run_test(const uint8_t *data, size_t len, const char *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) { -- cgit v1.2.3