HTML: Viewport width/height in length context are fixed point.

This commit is contained in:
Michael Drake 2019-06-29 21:59:15 +01:00
parent ca2cbac232
commit 1c3ce67c62

View File

@ -1536,8 +1536,8 @@ static void html_reformat(struct content *c, int width, int height)
htmlc->reflowing = true; htmlc->reflowing = true;
htmlc->len_ctx.vw = nscss_pixels_physical_to_css(width); htmlc->len_ctx.vw = nscss_pixels_physical_to_css(INTTOFIX(width));
htmlc->len_ctx.vh = nscss_pixels_physical_to_css(height); htmlc->len_ctx.vh = nscss_pixels_physical_to_css(INTTOFIX(height));
htmlc->len_ctx.root_style = htmlc->layout->style; htmlc->len_ctx.root_style = htmlc->layout->style;
layout_document(htmlc, width, height); layout_document(htmlc, width, height);