diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-25 23:50:27 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:52 +0100 |
commit | cf42f2f4d5e95b7254479e80614d1814e74e2387 (patch) | |
tree | 9d0452350d479c0222002c5969a4b0d8ce104925 /source/html/css-apply.c | |
parent | bb238db8919162c8976980b8aa48f70664f2f29d (diff) | |
download | mupdf-cf42f2f4d5e95b7254479e80614d1814e74e2387.tar.xz |
html: Split html parsing cache and state into html_context.
html_document is now a simple client of html_context.
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r-- | source/html/css-apply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c index 67814440..bbfc7ffa 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -990,7 +990,7 @@ default_computed_style(struct computed_style *style) } void -compute_style(html_document *doc, struct computed_style *style, struct style *node) +compute_style(fz_context *ctx, html_context *htx, struct computed_style *style, struct style *node) { struct value *value; @@ -1087,7 +1087,7 @@ compute_style(html_document *doc, struct computed_style *style, struct style *no const char *font_variant = get_style_property_string(node, "font-variant", "normal"); const char *font_style = get_style_property_string(node, "font-style", "normal"); const char *font_weight = get_style_property_string(node, "font-weight", "normal"); - style->font = html_load_font(doc, font_family, font_variant, font_style, font_weight); + style->font = html_load_font(ctx, htx, font_family, font_variant, font_style, font_weight); } } |