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/mq.h | |
parent | 57fa3608e13accc24a45e5d7801a381212c2ff22 (diff) | |
download | libcss-0cf10a040aea028c7dc81cf353da7a7af5331076.tar.gz libcss-0cf10a040aea028c7dc81cf353da7a7af5331076.tar.bz2 |
Units: Remove units that nobody supports.
Diffstat (limited to 'src/select/mq.h')
-rw-r--r-- | src/select/mq.h | 11 |
1 files changed, 0 insertions, 11 deletions
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; |