diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-14 10:55:39 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:51 +0100 |
commit | 8758df6c290525eb2246977d84816d171e95309b (patch) | |
tree | df4ad0493647b325a13bbb90bd43dc1133ac4171 /source/html | |
parent | 5ba0b431a80707230c0e7e14c2b4eb520efb3e2d (diff) | |
download | mupdf-8758df6c290525eb2246977d84816d171e95309b.tar.xz |
html: Print log messages when starting the layout stages.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/handler.c | 2 | ||||
-rw-r--r-- | source/html/layout.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/source/html/handler.c b/source/html/handler.c index 0c7463cb..6b19304b 100644 --- a/source/html/handler.c +++ b/source/html/handler.c @@ -60,6 +60,8 @@ html_open_document_with_stream(fz_context *ctx, fz_stream *file) buf = fz_read_all(file, 0); fz_write_buffer_byte(ctx, buf, 0); + +printf("html: parsing XHTML.\n"); xml = fz_parse_xml(ctx, buf->data, buf->len, 1); fz_drop_buffer(ctx, buf); diff --git a/source/html/layout.c b/source/html/layout.c index afac6a1a..00ad79f6 100644 --- a/source/html/layout.c +++ b/source/html/layout.c @@ -652,10 +652,11 @@ html_layout_document(html_document *doc, float page_w, float page_h) doc->page_w = page_w; doc->page_h = page_h; +printf("html: parsing style sheets.\n"); css = fz_parse_css(doc->ctx, NULL, default_css); css = load_css(doc, css, doc->xml); - print_rules(css); + // print_rules(css); style.up = NULL; style.count = 0; @@ -666,9 +667,11 @@ html_layout_document(html_document *doc, float page_w, float page_h) page_box->w = page_w; page_box->h = 0; +printf("html: applying styles and generating boxes.\n"); generate_boxes(doc, doc->xml, root_box, css, &style); - +printf("html: laying out text.\n"); layout_block(doc->ctx, root_box, page_box, 12, 0); +printf("html: finished.\n"); // print_box(doc->ctx, root_box, 0); |