From 8758df6c290525eb2246977d84816d171e95309b Mon Sep 17 00:00:00 2001
From: Tor Andersson <tor.andersson@artifex.com>
Date: Fri, 14 Nov 2014 10:55:39 +0100
Subject: html: Print log messages when starting the layout stages.

---
 source/html/handler.c | 2 ++
 source/html/layout.c  | 7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

(limited to 'source/html')

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);
 
-- 
cgit v1.2.3