diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-03-15 16:56:59 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-19 14:40:54 +0100 |
commit | 0cf10a040aea028c7dc81cf353da7a7af5331076 (patch) | |
tree | e5d97aaba0840b047d69bf87655682c56fb2ad40 /src/select | |
parent | 57fa3608e13accc24a45e5d7801a381212c2ff22 (diff) | |
download | libcss-0cf10a040aea028c7dc81cf353da7a7af5331076.tar.gz libcss-0cf10a040aea028c7dc81cf353da7a7af5331076.tar.bz2 |
Units: Remove units that nobody supports.
Diffstat (limited to 'src/select')
-rw-r--r-- | src/select/helpers.h | 3 | ||||
-rw-r--r-- | src/select/mq.h | 11 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/select/helpers.h b/src/select/helpers.h index ba2e3be..19ff7de 100644 --- a/src/select/helpers.h +++ b/src/select/helpers.h @@ -22,12 +22,9 @@ static inline css_unit css__to_css_unit(uint32_t u) case UNIT_MM: return CSS_UNIT_MM; case UNIT_PT: return CSS_UNIT_PT; case UNIT_PC: return CSS_UNIT_PC; - case UNIT_CAP: return CSS_UNIT_CAP; case UNIT_CH: return CSS_UNIT_CH; - case UNIT_IC: return CSS_UNIT_IC; case UNIT_REM: return CSS_UNIT_REM; case UNIT_LH: return CSS_UNIT_LH; - case UNIT_RLH: return CSS_UNIT_RLH; case UNIT_VH: return CSS_UNIT_VH; case UNIT_VW: return CSS_UNIT_VW; case UNIT_VI: return CSS_UNIT_VI; diff --git a/src/select/mq.h b/src/select/mq.h index 79303e9..6f98387 100644 --- a/src/select/mq.h +++ b/src/select/mq.h @@ -42,9 +42,7 @@ static inline css_fixed css_len2px( switch (unit) { case CSS_UNIT_EM: case CSS_UNIT_EX: - case CSS_UNIT_CAP: case CSS_UNIT_CH: - case CSS_UNIT_IC: { px_per_unit = FDIV(FMUL(media->client_font_size, F_96), F_72); @@ -53,15 +51,9 @@ static inline css_fixed css_len2px( case CSS_UNIT_EX: px_per_unit = FMUL(px_per_unit, FLTTOFIX(0.6)); break; - case CSS_UNIT_CAP: - px_per_unit = FMUL(px_per_unit, FLTTOFIX(0.9)); - break; case CSS_UNIT_CH: px_per_unit = FMUL(px_per_unit, FLTTOFIX(0.4)); break; - case CSS_UNIT_IC: - px_per_unit = FMUL(px_per_unit, FLTTOFIX(1.1)); - break; default: break; } @@ -90,9 +82,6 @@ static inline css_fixed css_len2px( case CSS_UNIT_REM: px_per_unit = FDIV(FMUL(media->client_font_size, F_96), F_72); break; - case CSS_UNIT_RLH: - px_per_unit = media->client_line_height; - break; case CSS_UNIT_VH: px_per_unit = FDIV(media->height, F_100); break; |