summaryrefslogtreecommitdiff
path: root/src/select/properties/content.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/content.c
parent2504bb6f6414ae36c036a84d21f7821178dc58ee (diff)
downloadlibcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.gz
Select: Make inherit flag handling aware of other default values
Diffstat (limited to 'src/select/properties/content.c')
-rw-r--r--src/select/properties/content.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/properties/content.c b/src/select/properties/content.c
index f75743d..df79fe1 100644
--- a/src/select/properties/content.c
+++ b/src/select/properties/content.c
@@ -21,7 +21,7 @@ css_error css__cascade_content(uint32_t opv, css_style *style,
css_computed_content_item *content = NULL;
uint32_t n_contents = 0;
- if (isInherit(opv) == false) {
+ if (hasFlagValue(opv) == false) {
uint32_t v = getValue(opv);
if (v == CONTENT_NORMAL) {
@@ -140,7 +140,7 @@ css_error css__cascade_content(uint32_t opv, css_style *style,
}
if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
- isInherit(opv))) {
+ getFlagValue(opv))) {
css_error error;
error = set_content(state->computed, value, content);