diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-03-22 17:47:11 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-19 14:40:54 +0100 |
commit | ecf42afc3329b03ee642ede84f9ba224d2aff1e1 (patch) | |
tree | f147bfabd58888c1f9fd2bd98c14b840314eb5ed /include/libcss/unit.h | |
parent | 65d4fd6e83d421e7fa7a8c7df44d01797e3c69ae (diff) | |
download | libcss-ecf42afc3329b03ee642ede84f9ba224d2aff1e1.tar.gz |
Selection: Don't duplicate unit conversion members in media descriptor.tlsa/units
Diffstat (limited to 'include/libcss/unit.h')
-rw-r--r-- | include/libcss/unit.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/libcss/unit.h b/include/libcss/unit.h index a847077..67194c1 100644 --- a/include/libcss/unit.h +++ b/include/libcss/unit.h @@ -36,7 +36,7 @@ typedef css_fixed (*css_unit_len_measure)( * If a NULL pointer is given, LibCSS will use a fixed scaling of * the "em" unit. */ -typedef struct css_unit_len_ctx { +typedef struct css_unit_ctx { /** * Viewport width in CSS pixels. * Used if unit is vh, vw, vi, vb, vmin, or vmax. @@ -73,7 +73,7 @@ typedef struct css_unit_len_ctx { * Optional client callback for font measuring. */ const css_unit_len_measure measure; -} css_unit_len_ctx; +} css_unit_ctx; /** * Convert css pixels to physical pixels. @@ -114,7 +114,7 @@ static inline css_fixed css_unit_device2css_px( */ css_fixed css_unit_font_size_len2pt( const css_computed_style *style, - const css_unit_len_ctx *ctx, + const css_unit_ctx *ctx, const css_fixed length, const css_unit unit); @@ -129,7 +129,7 @@ css_fixed css_unit_font_size_len2pt( */ css_fixed css_unit_len2css_px( const css_computed_style *style, - const css_unit_len_ctx *ctx, + const css_unit_ctx *ctx, const css_fixed length, const css_unit unit); @@ -144,7 +144,7 @@ css_fixed css_unit_len2css_px( */ css_fixed css_unit_len2device_px( const css_computed_style *style, - const css_unit_len_ctx *ctx, + const css_unit_ctx *ctx, const css_fixed length, const css_unit unit); |