diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-06 21:30:05 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-06 21:30:05 +0100 |
commit | 51feeadcf953d5a4e1876e61350184e11fe1f154 (patch) | |
tree | 96817ddf9f933859bc56b29f0f6067ac62da1384 /content | |
parent | 041e9426c1be16709f620757e79c68843058f43f (diff) | |
download | netsurf-51feeadcf953d5a4e1876e61350184e11fe1f154.tar.gz netsurf-51feeadcf953d5a4e1876e61350184e11fe1f154.tar.bz2 |
HTML: Set up the CSS length measuring context in CSS pixels.
Diffstat (limited to 'content')
-rw-r--r-- | content/handlers/html/html.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c index 4443d2ee5..cc3e0155b 100644 --- a/content/handlers/html/html.c +++ b/content/handlers/html/html.c @@ -1533,8 +1533,8 @@ static void html_reformat(struct content *c, int width, int height) htmlc->reflowing = true; - htmlc->len_ctx.vw = width; - htmlc->len_ctx.vh = height; + htmlc->len_ctx.vw = nscss_pixels_physical_to_css(width); + htmlc->len_ctx.vh = nscss_pixels_physical_to_css(height); htmlc->len_ctx.root_style = htmlc->layout->style; layout_document(htmlc, width, height); |