From 2504bb6f6414ae36c036a84d21f7821178dc58ee Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 13 Aug 2022 16:23:56 +0100 Subject: Parse: Nongenerated properties: Explicit defaults --- src/parse/properties/content.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/parse/properties/content.c') diff --git a/src/parse/properties/content.c b/src/parse/properties/content.c index 10f221f..186abcc 100644 --- a/src/parse/properties/content.c +++ b/src/parse/properties/content.c @@ -35,6 +35,7 @@ css_error css__parse_content(css_language *c, int orig_ctx = *ctx; css_error error; const css_token *token; + enum flag_value flag_value; bool match; /* IDENT(normal, none, inherit) | [ ... ]+ */ @@ -44,12 +45,11 @@ css_error css__parse_content(css_language *c, return CSS_INVALID; } + flag_value = get_css_flag_value(c, token); - if ((token->type == CSS_TOKEN_IDENT) && - (lwc_string_caseless_isequal(token->idata, - c->strings[INHERIT], - &match) == lwc_error_ok && match)) { - error = css_stylesheet_style_inherit(result, CSS_PROP_CONTENT); + if (flag_value != FLAG_VALUE__NONE) { + error = css_stylesheet_style_flag_value(result, flag_value, + CSS_PROP_CONTENT); } else if ((token->type == CSS_TOKEN_IDENT) && (lwc_string_caseless_isequal(token->idata, c->strings[NORMAL], -- cgit v1.2.3