diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-10-07 16:37:16 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-10 15:57:46 +0100 |
commit | fa93162983d3dc72800aee3d9f195adef6148d12 (patch) | |
tree | 21182100fcfd212df3aa577376939b66efed478b /source/html/css-apply.c | |
parent | 402a98ce8033c08f463a0a9cde507e0c538e2562 (diff) | |
download | mupdf-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 'source/html/css-apply.c')
-rw-r--r-- | source/html/css-apply.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c index 62b06288..af2a3a45 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -1269,10 +1269,10 @@ fz_apply_css_style(fz_context *ctx, fz_html_font_set *set, fz_css_style *style, style->color = color_from_property(match, "color", black); style->background_color = color_from_property(match, "background-color", transparent); - style->border_style[0] = border_style_from_property(match, "border-top-style"); - style->border_style[1] = border_style_from_property(match, "border-right-style"); - style->border_style[2] = border_style_from_property(match, "border-bottom-style"); - style->border_style[3] = border_style_from_property(match, "border-left-style"); + style->border_style_0 = border_style_from_property(match, "border-top-style"); + style->border_style_1 = border_style_from_property(match, "border-right-style"); + style->border_style_2 = border_style_from_property(match, "border-bottom-style"); + style->border_style_3 = border_style_from_property(match, "border-left-style"); style->border_color[0] = color_from_property(match, "border-top-color", style->color); style->border_color[1] = color_from_property(match, "border-right-color", style->color); |