summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <Michael Drake tlsa@netsurf-browser.org>2019-05-06 14:02:32 +0100
committerMichael Drake <Michael Drake tlsa@netsurf-browser.org>2019-05-06 14:02:32 +0100
commitf87801ced60e92888325b0732d3e737f50abe1c9 (patch)
treeb421608f07868035fc0adf168d6b310f3e29a283
parent88223375fcdeed95afa708f934909b23b7765ed4 (diff)
downloadlibcss-f87801ced60e92888325b0732d3e737f50abe1c9.tar.gz
libcss-f87801ced60e92888325b0732d3e737f50abe1c9.tar.bz2
Media queries: Pass the right tokens to mq_populate_value.
-rw-r--r--src/parse/mq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/mq.c b/src/parse/mq.c
index 799edf7..f3510c1 100644
--- a/src/parse/mq.c
+++ b/src/parse/mq.c
@@ -420,7 +420,7 @@ static css_error mq_parse_range(lwc_string **strings,
result->value.data.num_or_ratio = ratio;
} else {
/* num/dim/ident */
- error = mq_populate_value(&result->value, token);
+ error = mq_populate_value(&result->value, name_or_value);
if (error != CSS_OK) {
free(result);
return error;
@@ -433,7 +433,7 @@ static css_error mq_parse_range(lwc_string **strings,
result->value2.data.num_or_ratio = ratio;
} else {
/* num/dim/ident */
- error = mq_populate_value(&result->value2, token);
+ error = mq_populate_value(&result->value2, value2);
if (error != CSS_OK) {
css__mq_feature_destroy(result);
return error;