diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-06 15:21:25 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-06 15:21:25 +0100 |
commit | 0ab9b380091f2c7dc2125244b0de2b8d1a5049fc (patch) | |
tree | 2d4f2dc1bb15824d84848c004302f1ef2a05255d /include | |
parent | 46235ec8cfad7f4b601a19ac7874727bfac8a84b (diff) | |
download | mupdf-0ab9b380091f2c7dc2125244b0de2b8d1a5049fc.tar.xz |
epub: Speed up css application by sorting the matched property list.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/html.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h index 8f4e5073..7a9a192d 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -8,6 +8,7 @@ typedef struct fz_html_s fz_html; typedef struct fz_html_flow_s fz_html_flow; typedef struct fz_css_rule_s fz_css_rule; +typedef struct fz_css_match_prop_s fz_css_match_prop; typedef struct fz_css_match_s fz_css_match; typedef struct fz_css_style_s fz_css_style; @@ -78,15 +79,18 @@ struct fz_css_value_s fz_css_value *next; }; +struct fz_css_match_prop_s +{ + const char *name; /* not owned */ + fz_css_value *value; /* not owned */ + int spec; +}; + struct fz_css_match_s { fz_css_match *up; int count; - struct { - const char *name; /* not owned */ - fz_css_value *value; /* not owned */ - int spec; - } prop[64]; + fz_css_match_prop prop[64]; }; enum { DIS_NONE, DIS_BLOCK, DIS_INLINE, DIS_LIST_ITEM, DIS_INLINE_BLOCK }; |