diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-02-17 09:01:40 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-02-17 09:06:58 +0000 |
commit | 776b0242a6221df61c8d1c7b320f223de5af8466 (patch) | |
tree | 3c5b5c8efff7e112b67a2075f6b0853529c96b80 | |
parent | 54371c28f07e638694ad2148e8900e1bae71e3d4 (diff) | |
download | netsurf-776b0242a6221df61c8d1c7b320f223de5af8466.tar.gz netsurf-776b0242a6221df61c8d1c7b320f223de5af8466.tar.bz2 |
Layout: Add debug logging to show viewport dimensions passed into layout.
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
-rw-r--r-- | content/handlers/html/layout.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, |