summaryrefslogtreecommitdiff
path: root/src/select/properties/writing_mode.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-15 20:15:58 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-08-29 13:49:20 +0100
commit166581e23cb6e1e6279f450635cd16a12f8b0ef2 (patch)
tree957ce75e15a34e4cd090dc489bd18b8c95b140a3 /src/select/properties/writing_mode.c
parent2504bb6f6414ae36c036a84d21f7821178dc58ee (diff)
downloadlibcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.gz
Select: Make inherit flag handling aware of other default values
Diffstat (limited to 'src/select/properties/writing_mode.c')
-rw-r--r--src/select/properties/writing_mode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/select/properties/writing_mode.c b/src/select/properties/writing_mode.c
index bbd3753..99ebd9e 100644
--- a/src/select/properties/writing_mode.c
+++ b/src/select/properties/writing_mode.c
@@ -17,11 +17,11 @@
css_error css__cascade_writing_mode(uint32_t opv, css_style *style,
css_select_state *state)
{
- bool inherit = isInherit(opv);
+ enum flag_value flag_value = getFlagValue(opv);
uint16_t writing_mode = CSS_WRITING_MODE_INHERIT;
UNUSED(style);
- if (inherit == false) {
+ if (flag_value == FLAG_VALUE__NONE) {
switch (getValue(opv)) {
case WRITING_MODE_HORIZONTAL_TB:
writing_mode = CSS_WRITING_MODE_HORIZONTAL_TB;
@@ -36,7 +36,7 @@ css_error css__cascade_writing_mode(uint32_t opv, css_style *style,
}
if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
- inherit)) {
+ flag_value)) {
return set_writing_mode(state->computed, writing_mode);
}