diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-10-13 16:16:28 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:51 +0100 |
commit | 5cb1a29be4993d72cf6ab2af128135e2b7e40dd2 (patch) | |
tree | 30c513041af51dafd7d859664bd28922150053b3 /include | |
parent | 9d1482bc78d72ba330c2130170b49b4e18702623 (diff) | |
download | mupdf-5cb1a29be4993d72cf6ab2af128135e2b7e40dd2.tar.xz |
html: Parse inline style attributes.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/html.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h index f8882b94..8a1eaa3c 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -88,6 +88,7 @@ struct property *new_property(const char *name, struct value *value, int spec); struct value *new_value(int type, const char *value); struct rule *fz_parse_css(fz_context *ctx, struct rule *old, const char *source); +struct property *fz_parse_css_properties(fz_context *ctx, const char *source); enum { NONE, BLOCK, INLINE, LIST_ITEM }; enum { STATIC, RELATIVE, ABSOLUTE, FIXED }; @@ -119,7 +120,8 @@ struct computed_style int text_indent; }; -void apply_styles(struct rule *rule, struct style *style, fz_xml *node); +void apply_styles(struct style *style, struct rule *rule, fz_xml *node); +void apply_inline_style(struct style *style, struct property *prop); void compute_style(struct computed_style *cstyle, struct style *style); #endif |