diff options
author | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-06 14:02:32 +0100 |
---|---|---|
committer | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-06 14:02:32 +0100 |
commit | f87801ced60e92888325b0732d3e737f50abe1c9 (patch) | |
tree | b421608f07868035fc0adf168d6b310f3e29a283 /src | |
parent | 88223375fcdeed95afa708f934909b23b7765ed4 (diff) | |
download | libcss-f87801ced60e92888325b0732d3e737f50abe1c9.tar.gz |
Media queries: Pass the right tokens to mq_populate_value.
Diffstat (limited to 'src')
-rw-r--r-- | src/parse/mq.c | 4 |
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; |