summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-10-07 16:37:16 +0100
committerRobin Watts <robin.watts@artifex.com>2016-10-10 15:57:46 +0100
commitfa93162983d3dc72800aee3d9f195adef6148d12 (patch)
tree21182100fcfd212df3aa577376939b66efed478b /include
parent402a98ce8033c08f463a0a9cde507e0c538e2562 (diff)
downloadmupdf-fa93162983d3dc72800aee3d9f195adef6148d12.tar.xz
Change HTML agent to use bitfields rather than chars.
Saves 8 bytes on every css_style (and we have a lot of those).
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/html.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h
index 8632ed5e..c3dd7977 100644
--- a/include/mupdf/html.h
+++ b/include/mupdf/html.h
@@ -155,14 +155,17 @@ struct fz_css_style_s
fz_css_number padding[4];
fz_css_number border_width[4];
fz_css_number text_indent;
- char visibility;
- char white_space;
- char text_align;
- char vertical_align;
- char list_style_type;
- char border_style[4];
- char page_break_before;
- char page_break_after;
+ unsigned int visibility : 2;
+ unsigned int white_space : 3;
+ unsigned int text_align : 2;
+ unsigned int vertical_align : 3;
+ unsigned int list_style_type : 4;
+ unsigned int page_break_before : 3;
+ unsigned int page_break_after : 3;
+ unsigned int border_style_0 : 1;
+ unsigned int border_style_1 : 1;
+ unsigned int border_style_2 : 1;
+ unsigned int border_style_3 : 1;
fz_css_number line_height;
fz_css_color background_color;
fz_css_color border_color[4];