Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/1c3ce67c62cccd8a32090e770f0cba62e9945f28
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/1c3ce67c62cccd8a32090e770f0cba62e9945f28
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/1c3ce67c62cccd8a32090e770f0cba62e9945f28

The branch, master has been updated
       via  1c3ce67c62cccd8a32090e770f0cba62e9945f28 (commit)
      from  ca2cbac232f0d048eadc948e60f91f09471f6ac9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=1c3ce67c62cccd8a32090e770f0cba62e9945f28
commit 1c3ce67c62cccd8a32090e770f0cba62e9945f28
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

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

diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index ba80ad1..57f2e42 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -1536,8 +1536,8 @@ static void html_reformat(struct content *c, int width, 
int height)
 
        htmlc->reflowing = true;
 
-       htmlc->len_ctx.vw = nscss_pixels_physical_to_css(width);
-       htmlc->len_ctx.vh = nscss_pixels_physical_to_css(height);
+       htmlc->len_ctx.vw = nscss_pixels_physical_to_css(INTTOFIX(width));
+       htmlc->len_ctx.vh = nscss_pixels_physical_to_css(INTTOFIX(height));
        htmlc->len_ctx.root_style = htmlc->layout->style;
 
        layout_document(htmlc, width, height);


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/html/html.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index ba80ad1..57f2e42 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -1536,8 +1536,8 @@ static void html_reformat(struct content *c, int width, 
int height)
 
        htmlc->reflowing = true;
 
-       htmlc->len_ctx.vw = nscss_pixels_physical_to_css(width);
-       htmlc->len_ctx.vh = nscss_pixels_physical_to_css(height);
+       htmlc->len_ctx.vw = nscss_pixels_physical_to_css(INTTOFIX(width));
+       htmlc->len_ctx.vh = nscss_pixels_physical_to_css(INTTOFIX(height));
        htmlc->len_ctx.root_style = htmlc->layout->style;
 
        layout_document(htmlc, width, height);


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to