summaryrefslogtreecommitdiff
path: root/src/parse/mq.h
diff options
context:
space:
mode:
authorMichael Drake <Michael Drake tlsa@netsurf-browser.org>2019-06-11 13:11:14 +0100
committerMichael Drake <Michael Drake tlsa@netsurf-browser.org>2019-06-11 13:11:14 +0100
commit35ab0a4e9406f9eeb29ca261680d911c423e4f90 (patch)
tree388b73d91c281bc531d1105574f9bdb196eefb0d /src/parse/mq.h
parent00cafe488273eab18e9c93bf59191efaa722fc3b (diff)
downloadlibcss-35ab0a4e9406f9eeb29ca261680d911c423e4f90.tar.gz
libcss-35ab0a4e9406f9eeb29ca261680d911c423e4f90.tar.bz2
Media queries: Simplify parsed mq data structure slightly.
Diffstat (limited to 'src/parse/mq.h')
-rw-r--r--src/parse/mq.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/parse/mq.h b/src/parse/mq.h
index 0e2f845..7a51578 100644
--- a/src/parse/mq.h
+++ b/src/parse/mq.h
@@ -57,14 +57,10 @@ typedef struct {
typedef struct css_mq_cond_or_feature css_mq_cond_or_feature;
typedef struct {
- uint32_t nparts;
- css_mq_cond_or_feature **parts;
-} css_mq_cond_parts;
-
-typedef struct {
uint32_t negate : 1, /* set if "not" */
op : 1; /* clear if "and", set if "or" */
- css_mq_cond_parts *parts;
+ uint32_t nparts;
+ css_mq_cond_or_feature **parts;
} css_mq_cond;
struct css_mq_cond_or_feature {