summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-28 11:52:08 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:52 +0100
commit46c3e7d3731c4e869e8b6b7b1e7f1a1b2d2491cd (patch)
tree0f6983df4ea5d5240ac1b525cc8ac9960512e779 /include
parent1cb7f8f9ae768b680477212c678a3111fca71ef7 (diff)
downloadmupdf-46c3e7d3731c4e869e8b6b7b1e7f1a1b2d2491cd.tar.xz
html: Clean up some naming.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/html.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h
index 67c2a614..86fea924 100644
--- a/include/mupdf/html.h
+++ b/include/mupdf/html.h
@@ -4,7 +4,7 @@
#include "mupdf/fitz.h"
typedef struct fz_html_font_set_s fz_html_font_set;
-typedef struct fz_html_box_s fz_html_box;
+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;
@@ -133,14 +133,14 @@ enum
BOX_INLINE, /* inline-level: contains only inline boxes */
};
-struct fz_html_box_s
+struct fz_html_s
{
int type;
float x, y, w, h; /* content */
float padding[4];
float margin[4];
float border[4];
- fz_html_box *up, *down, *last, *next;
+ fz_html *up, *down, *last, *next;
fz_html_flow *flow_head, **flow_tail;
fz_css_style style;
int is_first_flow; /* for text-indent */
@@ -163,7 +163,7 @@ struct fz_html_flow_s
fz_html_flow *next;
};
-fz_css_rule *fz_parse_css(fz_context *ctx, fz_css_rule *chain, const char *source, const char *file, int line);
+fz_css_rule *fz_parse_css(fz_context *ctx, fz_css_rule *chain, const char *source, const char *file);
fz_css_property *fz_parse_css_properties(fz_context *ctx, const char *source);
void fz_free_css(fz_context *ctx, fz_css_rule *rule);
@@ -181,9 +181,9 @@ fz_font *fz_load_html_font(fz_context *ctx, fz_html_font_set *set,
const char *family, const char *variant, const char *style, const char *weight);
void fz_free_html_font_set(fz_context *ctx, fz_html_font_set *htx);
-fz_html_box *fz_generate_html(fz_context *ctx, fz_html_font_set *htx, fz_archive *zip, const char *base_uri, fz_buffer *buf);
-void fz_layout_html(fz_context *ctx, fz_html_box *box, float w, float h, float em);
-void fz_draw_html(fz_context *ctx, fz_html_box *box, float page_top, float page_bot, fz_device *dev, const fz_matrix *ctm);
-void fz_free_html(fz_context *ctx, fz_html_box *box);
+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 *box, float w, float h, float em);
+void fz_draw_html(fz_context *ctx, fz_html *box, float page_top, float page_bot, fz_device *dev, const fz_matrix *ctm);
+void fz_free_html(fz_context *ctx, fz_html *box);
#endif