Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/31655be43bb6a1eda4f53a6d2a5d5a35c2a89232
...commit
http://git.netsurf-browser.org/netsurf.git/commit/31655be43bb6a1eda4f53a6d2a5d5a35c2a89232
...tree
http://git.netsurf-browser.org/netsurf.git/tree/31655be43bb6a1eda4f53a6d2a5d5a35c2a89232
The branch, master has been updated
via 31655be43bb6a1eda4f53a6d2a5d5a35c2a89232 (commit)
from 51feeadcf953d5a4e1876e61350184e11fe1f154 (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=31655be43bb6a1eda4f53a6d2a5d5a35c2a89232
commit 31655be43bb6a1eda4f53a6d2a5d5a35c2a89232
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
CSS: One inch is 96 css pixels.
diff --git a/content/handlers/css/utils.c b/content/handlers/css/utils.c
index dd669c6..cac777c 100644
--- a/content/handlers/css/utils.c
+++ b/content/handlers/css/utils.c
@@ -184,9 +184,9 @@ css_fixed nscss_len2px(
case CSS_UNIT_PX:
px_per_unit = F_1;
break;
- /* 1in = DPIpx */
+ /* 1in = 96 CSS pixels */
case CSS_UNIT_IN:
- px_per_unit = nscss_screen_dpi;
+ px_per_unit = F_96;
break;
/* 1in = 2.54cm => 1cm = (DPI/2.54)px */
case CSS_UNIT_CM:
-----------------------------------------------------------------------
Summary of changes:
content/handlers/css/utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/content/handlers/css/utils.c b/content/handlers/css/utils.c
index dd669c6..cac777c 100644
--- a/content/handlers/css/utils.c
+++ b/content/handlers/css/utils.c
@@ -184,9 +184,9 @@ css_fixed nscss_len2px(
case CSS_UNIT_PX:
px_per_unit = F_1;
break;
- /* 1in = DPIpx */
+ /* 1in = 96 CSS pixels */
case CSS_UNIT_IN:
- px_per_unit = nscss_screen_dpi;
+ px_per_unit = F_96;
break;
/* 1in = 2.54cm => 1cm = (DPI/2.54)px */
case CSS_UNIT_CM:
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org