summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-12-14 15:27:24 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-12-16 02:16:58 +0100
commit845875985942c1df3db94e7b73fccdc413c25a63 (patch)
tree3198bdbf2069f2cf28729aebeb909a07a6c5dc0c /include
parentbf8fa993e6403991bfcad13ccfb2873e32c37194 (diff)
downloadmupdf-845875985942c1df3db94e7b73fccdc413c25a63.tar.xz
Move page size and margins into fz_html struct.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/html.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h
index b6a1cd89..be0808d1 100644
--- a/include/mupdf/html.h
+++ b/include/mupdf/html.h
@@ -191,6 +191,8 @@ enum
struct fz_html_s
{
fz_pool *pool; /* pool allocator for this html tree */
+ float page_w, page_h;
+ float page_margin[4];
fz_html_box *root;
};
@@ -276,10 +278,10 @@ void fz_add_css_font_faces(fz_context *ctx, fz_html_font_set *set, fz_archive *z
fz_html *fz_parse_html(fz_context *ctx, fz_html_font_set *htx, fz_archive *zip, const char *base_uri, fz_buffer *buf, const char *user_css);
void fz_layout_html(fz_context *ctx, fz_html *html, float w, float h, float em);
-void fz_draw_html(fz_context *ctx, fz_device *dev, const fz_matrix *ctm, fz_html *html, float page_top, float page_bot);
+void fz_draw_html(fz_context *ctx, fz_device *dev, const fz_matrix *ctm, fz_html *html, int page);
float fz_find_html_target(fz_context *ctx, fz_html *html, const char *id);
-fz_link *fz_load_html_links(fz_context *ctx, fz_html *html, int page, int page_h, const char *base_uri);
+fz_link *fz_load_html_links(fz_context *ctx, fz_html *html, int page, const char *base_uri);
void fz_drop_html(fz_context *ctx, fz_html *html);
#endif