summaryrefslogtreecommitdiff
path: root/include/libcss/select.h
diff options
context:
space:
mode:
authorMichael Drake <Michael Drake tlsa@netsurf-browser.org>2021-03-18 09:16:30 +0000
committerMichael Drake <Michael Drake tlsa@netsurf-browser.org>2021-05-08 18:25:34 +0100
commit4b571e7c21fb8b3f1162c42fc4d8b036ba49136f (patch)
tree5f821510e54b70099f8f37db2b1176721e296a3f /include/libcss/select.h
parent0606e3db6b92369baa345c93ef0287e50e2d3542 (diff)
downloadlibcss-4b571e7c21fb8b3f1162c42fc4d8b036ba49136f.tar.gz
libcss-4b571e7c21fb8b3f1162c42fc4d8b036ba49136f.tar.bz2
Selection: Remove client callback for unit conversion.
Now clients provide a unit conversion context and libcss provides code to perform unit conversion. This reduces the amount of common code that clients have to write.
Diffstat (limited to 'include/libcss/select.h')
-rw-r--r--include/libcss/select.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libcss/select.h b/include/libcss/select.h
index ca57456..bfaf531 100644
--- a/include/libcss/select.h
+++ b/include/libcss/select.h
@@ -18,6 +18,7 @@ extern "C"
#include <libcss/hint.h>
#include <libcss/types.h>
#include <libcss/computed.h>
+#include <libcss/unit.h>
typedef enum css_pseudo_element {
CSS_PSEUDO_ELEMENT_NONE = 0,
@@ -123,9 +124,6 @@ typedef struct css_select_handler {
css_error (*ua_default_for_property)(void *pw, uint32_t property,
css_hint *hint);
- css_error (*compute_font_size)(void *pw, const css_hint *parent,
- css_hint *size);
-
/**
* Set libcss_node_data on a DOM node.
*
@@ -221,6 +219,7 @@ css_error css_select_default_style(css_select_ctx *ctx,
css_select_handler *handler, void *pw,
css_computed_style **style);
css_error css_select_style(css_select_ctx *ctx, void *node,
+ const css_unit_len_ctx *unit_len_ctx,
const css_media *media, const css_stylesheet *inline_style,
css_select_handler *handler, void *pw,
css_select_results **result);