diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-03-18 09:16:30 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-19 14:40:54 +0100 |
commit | 65d4fd6e83d421e7fa7a8c7df44d01797e3c69ae (patch) | |
tree | 5f821510e54b70099f8f37db2b1176721e296a3f /src/select/computed.h | |
parent | 6cd205329373efe5a1629518c2875724cc79dce3 (diff) | |
download | libcss-65d4fd6e83d421e7fa7a8c7df44d01797e3c69ae.tar.gz libcss-65d4fd6e83d421e7fa7a8c7df44d01797e3c69ae.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 'src/select/computed.h')
-rw-r--r-- | src/select/computed.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/select/computed.h b/src/select/computed.h index c926cec..8b33405 100644 --- a/src/select/computed.h +++ b/src/select/computed.h @@ -10,6 +10,8 @@ #include <libcss/computed.h> #include <libcss/hint.h> +#include <libcss/unit.h> + #include "autogenerated_computed.h" /** @@ -35,8 +37,6 @@ css_error css__computed_style_initialise(css_computed_style *style, css_error css__compute_absolute_values(const css_computed_style *parent, css_computed_style *style, - css_error (*compute_font_size)(void *pw, - const css_hint *parent, css_hint *size), - void *pw); + const css_unit_len_ctx *unit_len_ctx); #endif |