summaryrefslogtreecommitdiff
path: root/src/parse/mq.h
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2017-02-05 12:20:42 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-03-10 13:42:03 +0000
commit0b5d61d41b786ff6c081e5f44d12b061cf453caa (patch)
tree9f9e6ad907a6d18e8a11cd077293d068344785ef /src/parse/mq.h
parent38cad9c5adc597448c9ea73ece67d36c012a2cd8 (diff)
downloadlibcss-0b5d61d41b786ff6c081e5f44d12b061cf453caa.tar.gz
Media Queries: remainder of parser
Diffstat (limited to 'src/parse/mq.h')
-rw-r--r--src/parse/mq.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/parse/mq.h b/src/parse/mq.h
index c5268c7..ae0110b 100644
--- a/src/parse/mq.h
+++ b/src/parse/mq.h
@@ -73,20 +73,18 @@ struct css_mq_cond_or_feature {
CSS_MQ_COND
} type;
union {
- css_mq_cond cond;
- css_mq_feature feat;
+ css_mq_cond *cond;
+ css_mq_feature *feat;
} data;
};
typedef struct css_mq_query {
struct css_mq_query *next;
- uint32_t negate_type : 1, /* set if "not type" */
- cond_op : 1; /* clear if "and", set if "or" */
+ uint32_t negate_type : 1; /* set if "not type" */
lwc_string *type; /* or NULL */
- uint32_t nconds;
- css_mq_cond **conds;
+ css_mq_cond *cond;
} css_mq_query;
css_error css__mq_parse_media_list(css_language *c,