diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-12 13:07:48 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-12 13:07:48 +0000 |
commit | 2a871b7b632aa1899feb95fad2c33f9874cfe675 (patch) | |
tree | 4703038960cb2147b067be90856fc11a2f43b949 /src | |
parent | c4d6ab4cbf8611ef4ebde04b1cc58ea49d8657ec (diff) | |
download | libcss-2a871b7b632aa1899feb95fad2c33f9874cfe675.tar.gz |
Synchronise media type bitfield with reality -- it's 64bits wide.
svn path=/trunk/libcss/; revision=6453
Diffstat (limited to 'src')
-rw-r--r-- | src/stylesheet.c | 4 | ||||
-rw-r--r-- | src/stylesheet.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index a9413cc..da76915 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -37,7 +37,7 @@ static css_error _remove_selectors(css_stylesheet *sheet, css_rule *rule); */ css_error css_stylesheet_create(css_language_level level, const char *charset, const char *url, const char *title, - css_origin origin, uint32_t media, + css_origin origin, uint64_t media, css_import_handler import_callback, void *import_pw, css_alloc alloc, void *alloc_pw, css_stylesheet **stylesheet) { @@ -284,7 +284,7 @@ css_error css_stylesheet_get_origin(css_stylesheet *sheet, css_origin *origin) * \param media Pointer to location to receive media types * \return CSS_OK on success, appropriate error otherwise */ -css_error css_stylesheet_get_media(css_stylesheet *sheet, uint32_t *media) +css_error css_stylesheet_get_media(css_stylesheet *sheet, uint64_t *media) { if (sheet == NULL || media == NULL) return CSS_BADPARM; diff --git a/src/stylesheet.h b/src/stylesheet.h index fc74198..f1fb3fb 100644 --- a/src/stylesheet.h +++ b/src/stylesheet.h @@ -156,7 +156,7 @@ struct css_stylesheet { char *title; /**< Title of this sheet */ css_origin origin; /**< Origin of stylesheet */ - uint32_t media; /**< Bitfield of media types */ + uint64_t media; /**< Bitfield of media types */ void *ownerNode; /**< Owning node in document */ css_rule *ownerRule; /**< Owning rule in parent */ |