Layout: Add debug logging to show viewport dimensions passed into layout.

Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
This commit is contained in:
Michael Drake 2019-02-17 09:01:40 +00:00
parent 54371c28f0
commit 776b0242a6
1 changed files with 4 additions and 0 deletions

View File

@ -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,