summaryrefslogtreecommitdiff
path: root/src/select/properties/justify_content.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-15 20:15:58 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2022-08-28 15:35:15 +0100
commitdaa559f3be0e9a2cf5a4a2ddbd16c5c0a399dab8 (patch)
tree957ce75e15a34e4cd090dc489bd18b8c95b140a3 /src/select/properties/justify_content.c
parentdbcb2165bee48cacb35faa58c9aad7ac67a0ad55 (diff)
downloadlibcss-daa559f3be0e9a2cf5a4a2ddbd16c5c0a399dab8.tar.gz
libcss-daa559f3be0e9a2cf5a4a2ddbd16c5c0a399dab8.tar.bz2
Select: Make inherit flag handling aware of other default values
Diffstat (limited to 'src/select/properties/justify_content.c')
-rw-r--r--src/select/properties/justify_content.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/properties/justify_content.c b/src/select/properties/justify_content.c
index 2e17ca5..03c8bb4 100644
--- a/src/select/properties/justify_content.c
+++ b/src/select/properties/justify_content.c
@@ -21,7 +21,7 @@ css_error css__cascade_justify_content(uint32_t opv, css_style *style,
UNUSED(style);
- if (isInherit(opv) == false) {
+ if (hasFlagValue(opv) == false) {
switch (getValue(opv)) {
case JUSTIFY_CONTENT_FLEX_START:
value = CSS_JUSTIFY_CONTENT_FLEX_START;
@@ -45,7 +45,7 @@ css_error css__cascade_justify_content(uint32_t opv, css_style *style,
}
if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
- isInherit(opv))) {
+ getFlagValue(opv))) {
return set_justify_content(state->computed, value);
}