diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-08-15 20:15:58 +0100 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2022-08-29 13:49:20 +0100 |
commit | 166581e23cb6e1e6279f450635cd16a12f8b0ef2 (patch) | |
tree | 957ce75e15a34e4cd090dc489bd18b8c95b140a3 /src/select/properties/line_height.c | |
parent | 2504bb6f6414ae36c036a84d21f7821178dc58ee (diff) | |
download | libcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.gz libcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.bz2 |
Select: Make inherit flag handling aware of other default values
Diffstat (limited to 'src/select/properties/line_height.c')
-rw-r--r-- | src/select/properties/line_height.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/properties/line_height.c b/src/select/properties/line_height.c index 091a575..b43ebdd 100644 --- a/src/select/properties/line_height.c +++ b/src/select/properties/line_height.c @@ -21,7 +21,7 @@ css_error css__cascade_line_height(uint32_t opv, css_style *style, css_fixed val = 0; uint32_t unit = UNIT_PX; - if (isInherit(opv) == false) { + if (hasFlagValue(opv) == false) { switch (getValue(opv)) { case LINE_HEIGHT_NUMBER: value = CSS_LINE_HEIGHT_NUMBER; @@ -44,7 +44,7 @@ css_error css__cascade_line_height(uint32_t opv, css_style *style, unit = css__to_css_unit(unit); if (css__outranks_existing(getOpcode(opv), isImportant(opv), state, - isInherit(opv))) { + getFlagValue(opv))) { return set_line_height(state->computed, value, val, unit); } |