summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-10-13 16:16:28 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:51 +0100
commit5cb1a29be4993d72cf6ab2af128135e2b7e40dd2 (patch)
tree30c513041af51dafd7d859664bd28922150053b3 /include
parent9d1482bc78d72ba330c2130170b49b4e18702623 (diff)
downloadmupdf-5cb1a29be4993d72cf6ab2af128135e2b7e40dd2.tar.xz
html: Parse inline style attributes.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/html.h4
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