From f8c906e4c6ff36cefe0803cba6b2a083efe5bcb6 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sun, 20 Nov 2016 13:10:02 +0000 Subject: Media Queries: datastructures and plumbing. No parse implementation as yet. Selection hasn't been updated, either. One item of note in that area is that a client currently provides the media for top-level sheets being added to a selection context. This probably needs to change to providing a lwc_string containing the verbatim media query from the containing document's import mechanism. That way, the internal representation of media queries can remain opaque to clients. --- include/libcss/stylesheet.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/libcss/stylesheet.h') diff --git a/include/libcss/stylesheet.h b/include/libcss/stylesheet.h index 68c4dfc..542f199 100644 --- a/include/libcss/stylesheet.h +++ b/include/libcss/stylesheet.h @@ -36,7 +36,6 @@ typedef css_error (*css_url_resolution_fn)(void *pw, * \param pw Client data * \param parent Stylesheet requesting the import * \param url URL of the imported sheet - * \param media Applicable media for the imported sheet * \return CSS_OK on success, appropriate error otherwise * * \note This function will be invoked for notification purposes @@ -46,7 +45,7 @@ typedef css_error (*css_url_resolution_fn)(void *pw, * registration API. */ typedef css_error (*css_import_notification_fn)(void *pw, - css_stylesheet *parent, lwc_string *url, uint64_t media); + css_stylesheet *parent, lwc_string *url); /** * Callback use to resolve system colour names to RGB values @@ -145,7 +144,7 @@ css_error css_stylesheet_append_data(css_stylesheet *sheet, css_error css_stylesheet_data_done(css_stylesheet *sheet); css_error css_stylesheet_next_pending_import(css_stylesheet *parent, - lwc_string **url, uint64_t *media); + lwc_string **url); css_error css_stylesheet_register_import(css_stylesheet *parent, css_stylesheet *child); -- cgit v1.2.3