summaryrefslogtreecommitdiff
path: root/src/select/select.h
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/select.h
parent2504bb6f6414ae36c036a84d21f7821178dc58ee (diff)
downloadlibcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.gz
libcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.bz2
Select: Make inherit flag handling aware of other default values
Diffstat (limited to 'src/select/select.h')
-rw-r--r--src/select/select.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/select/select.h b/src/select/select.h
index 0a16b12..f449534 100644
--- a/src/select/select.h
+++ b/src/select/select.h
@@ -24,11 +24,11 @@ typedef struct reject_item {
} reject_item;
typedef struct prop_state {
- uint32_t specificity; /* Specificity of property in result */
- unsigned int set : 1, /* Whether property is set in result */
- origin : 2, /* Origin of property in result */
- important : 1, /* Importance of property in result */
- inherit : 1; /* Property is set to inherit */
+ uint32_t specificity; /* Specificity of property in result */
+ unsigned int set : 1, /* Whether property is set in result */
+ origin : 2, /* Origin of property in result */
+ important : 1; /* Importance of property in result */
+ enum flag_value explicit_default : 3; /* Property is set to inherit */
} prop_state;
@@ -98,7 +98,7 @@ static inline void advance_bytecode(css_style *style, uint32_t n_bytes)
}
bool css__outranks_existing(uint16_t op, bool important,
- css_select_state *state, bool inherit);
+ css_select_state *state, enum flag_value explicit_default);
#endif