diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-04 14:10:41 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-04 14:10:41 +0100 |
commit | 5d1a706bfc5d25ea0fc2060772e44222ea711df5 (patch) | |
tree | 548af2617882f5be239ea188d1c964245cfc06b3 /src/select/select.h | |
parent | d6126aa77eb442f446d28b6dfb15a884f209a341 (diff) | |
download | libcss-5d1a706bfc5d25ea0fc2060772e44222ea711df5.tar.gz libcss-5d1a706bfc5d25ea0fc2060772e44222ea711df5.tar.bz2 |
Media queries: Update selection API to support media queries.
The API changes are:
1. When building a selection context, stylesheets added with
`css_select_ctx_{append|insert}_sheet()` now have to have
media strings associcated with them. Previously they took
a simple bitfield for CSS media type.
2. When selecting for an element, the client needs to specify
the current media requirements. Previously it only had to
provide the bitfield for CSS media type.
3. Same for the css_select_font_faces API.
The selection handling has been updated to handle the new
API, however it is currently only looking at the media type
when performing selection.
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
Diffstat (limited to 'src/select/select.h')
-rw-r--r-- | src/select/select.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select/select.h b/src/select/select.h index 70f1ced..dc9aa4a 100644 --- a/src/select/select.h +++ b/src/select/select.h @@ -63,7 +63,7 @@ struct css_node_data { */ typedef struct css_select_state { void *node; /* Node we're selecting for */ - uint64_t media; /* Currently active media types */ + const css_media *media; /* Currently active media spec */ css_select_results *results; /* Result set to populate */ css_pseudo_element current_pseudo; /* Current pseudo element */ |