diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-10-15 14:43:15 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:51 +0100 |
commit | 1ce69ac127c823463204ad522bb7c71ac7fad27a (patch) | |
tree | 7814d15bc5f50a714c22eb33d70de63a6773ab28 /include | |
parent | 5cb1a29be4993d72cf6ab2af128135e2b7e40dd2 (diff) | |
download | mupdf-1ce69ac127c823463204ad522bb7c71ac7fad27a.tar.xz |
html: Use float for dimensions.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/html.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h index 8a1eaa3c..2b46fc9a 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -103,21 +103,21 @@ struct computed_style { int display; int position; - int top, right, bottom, left; - int margin[4]; - int padding[4]; - int border_width[4]; + float top, right, bottom, left; + float margin[4]; + float padding[4]; + float border_width[4]; int border_style; struct color border_color; struct color color; struct color background_color; const char *font_family; int bold, italic, smallcaps; - int font_size; - int line_height; + float font_size; + float line_height; int vertical_align; int text_align; - int text_indent; + float text_indent; }; void apply_styles(struct style *style, struct rule *rule, fz_xml *node); |