summaryrefslogtreecommitdiff
path: root/src/select/select.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-27 16:07:40 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-08-29 13:49:20 +0100
commitc14f3c4e05d3a6f38fbd84a2bee78895d8120619 (patch)
treea57c80084bc1386b178a3801474dcf67e4ff6095 /src/select/select.h
parent668aaa731a4e3fcb8ad49aa08b694aefe3f7e606 (diff)
downloadlibcss-c14f3c4e05d3a6f38fbd84a2bee78895d8120619.tar.gz
libcss-c14f3c4e05d3a6f38fbd84a2bee78895d8120619.tar.bz2
Select: Clone UA and author styles for revert
Diffstat (limited to 'src/select/select.h')
-rw-r--r--src/select/select.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/select/select.h b/src/select/select.h
index f449534..69bf4d8 100644
--- a/src/select/select.h
+++ b/src/select/select.h
@@ -58,6 +58,11 @@ struct css_node_data {
css_node_flags flags;
};
+struct revert_data {
+ prop_state props[CSS_N_PROPERTIES][CSS_PSEUDO_ELEMENT_COUNT];
+ css_computed_style *style[CSS_PSEUDO_ELEMENT_COUNT];
+};
+
/**
* Selection state
*/
@@ -67,6 +72,9 @@ typedef struct css_select_state {
const css_unit_ctx *unit_ctx; /* Unit conversion context. */
css_select_results *results; /* Result set to populate */
+ /** UA and user styles for handling revert property value. */
+ struct revert_data revert[CSS_ORIGIN_AUTHOR];
+
css_pseudo_element current_pseudo; /* Current pseudo element */
css_computed_style *computed; /* Computed style to populate */