summaryrefslogtreecommitdiff
path: root/src/parse/properties/voice_family.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-13 16:23:56 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-08-29 13:49:20 +0100
commit2504bb6f6414ae36c036a84d21f7821178dc58ee (patch)
tree8c6573ae9fe6ebd8af7ff8eead85c387557a5c3b /src/parse/properties/voice_family.c
parent0997e85ec5f14bd0d6959b9201fcd3845b224747 (diff)
downloadlibcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.gz
Parse: Nongenerated properties: Explicit defaults
Diffstat (limited to 'src/parse/properties/voice_family.c')
-rw-r--r--src/parse/properties/voice_family.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/parse/properties/voice_family.c b/src/parse/properties/voice_family.c
index 193cb6b..f62ba15 100644
--- a/src/parse/properties/voice_family.c
+++ b/src/parse/properties/voice_family.c
@@ -90,7 +90,7 @@ css_error css__parse_voice_family(css_language *c,
int orig_ctx = *ctx;
css_error error;
const css_token *token;
- bool match;
+ enum flag_value flag_value;
/* [ IDENT+ | STRING ] [ ',' [ IDENT+ | STRING ] ]* | IDENT(inherit)
*
@@ -105,11 +105,12 @@ css_error css__parse_voice_family(css_language *c,
return CSS_INVALID;
}
- 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_VOICE_FAMILY);
+ flag_value = get_css_flag_value(c, token);
+
+ if (flag_value != FLAG_VALUE__NONE) {
+ error = css_stylesheet_style_flag_value(result, flag_value,
+ CSS_PROP_VOICE_FAMILY);
+
} else {
*ctx = orig_ctx;