From 776b0242a6221df61c8d1c7b320f223de5af8466 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 17 Feb 2019 09:01:40 +0000 Subject: Layout: Add debug logging to show viewport dimensions passed into layout. Signed-off-by: Michael Drake --- content/handlers/html/layout.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content/handlers/html') diff --git a/content/handlers/html/layout.c b/content/handlers/html/layout.c index d52dbf8eb..f4a1a206f 100644 --- a/content/handlers/html/layout.c +++ b/content/handlers/html/layout.c @@ -5390,6 +5390,10 @@ bool layout_document(html_content *content, int width, int height) struct box *doc = content->layout; const struct gui_layout_table *font_func = content->font_func; + NSLOG(layout, DEBUG, "Doing layout to %ix%i of %s", + width, height, nsurl_access(content_get_url( + &content->base))); + layout_minmax_block(doc, font_func, content); layout_block_find_dimensions(&content->len_ctx, -- cgit v1.2.3