From df9f2c91ff5c2f117fcd34317f865463e70b4063 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 21 Apr 2018 14:04:32 +0100 Subject: Media Queries: mq_parse_ratio doesn't need language object. --- src/parse/mq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/parse') diff --git a/src/parse/mq.c b/src/parse/mq.c index f99d5b0..932d6aa 100644 --- a/src/parse/mq.c +++ b/src/parse/mq.c @@ -17,7 +17,7 @@ #include "parse/properties/utils.h" #include "utils/utils.h" -static css_error mq_parse_ratio(css_language *c, +static css_error mq_parse_ratio( const parserutils_vector *vector, int *ctx, const css_token *numerator, css_fixed *ratio) { @@ -166,7 +166,7 @@ static css_error mq_parse_range(css_language *c, if (name_or_value->type == CSS_TOKEN_NUMBER && tokenIsChar(parserutils_vector_peek(vector, *ctx), '/')) { /* ratio */ - error = mq_parse_ratio(c, vector, ctx, token, &ratio); + error = mq_parse_ratio(vector, ctx, token, &ratio); if (error != CSS_OK) { return error; } @@ -213,7 +213,7 @@ static css_error mq_parse_range(css_language *c, if (value_or_name->type == CSS_TOKEN_NUMBER && tokenIsChar(parserutils_vector_peek(vector, *ctx), '/')) { /* ratio */ - error = mq_parse_ratio(c, vector, ctx, token, &ratio); + error = mq_parse_ratio(vector, ctx, token, &ratio); if (error != CSS_OK) { return error; } @@ -260,7 +260,7 @@ static css_error mq_parse_range(css_language *c, if (value_or_name->type == CSS_TOKEN_NUMBER && tokenIsChar(parserutils_vector_peek(vector, *ctx), '/')) { /* ratio */ - error = mq_parse_ratio(c, vector, ctx, token, &ratio2); + error = mq_parse_ratio(vector, ctx, token, &ratio2); if (error != CSS_OK) { return error; } @@ -381,7 +381,7 @@ static css_error mq_parse_media_feature(css_language *c, /* ratio */ css_fixed ratio; - error = mq_parse_ratio(c, vector, ctx, token, &ratio); + error = mq_parse_ratio(vector, ctx, token, &ratio); if (error != CSS_OK) { free(result); return error; -- cgit v1.2.3