Gitweb links:
...log
http://git.netsurf-browser.org/libcss.git/shortlog/4d94d9bf41498e6ba9272b3366a68b8a16f06f28
...commit
http://git.netsurf-browser.org/libcss.git/commit/4d94d9bf41498e6ba9272b3366a68b8a16f06f28
...tree
http://git.netsurf-browser.org/libcss.git/tree/4d94d9bf41498e6ba9272b3366a68b8a16f06f28
The branch, master has been updated
via 4d94d9bf41498e6ba9272b3366a68b8a16f06f28 (commit)
from 42f13854b9cb559381e1ac50a40712c6b783b2a8 (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/libcss.git/commit/?id=4d94d9bf41498e6ba9272b3366a68b8a16f06f28
commit 4d94d9bf41498e6ba9272b3366a68b8a16f06f28
Author: Lucas Neves <[email protected]>
Commit: Michael Drake <[email protected]>
Tests: Fixes sizing of font-size: smaller in selection test.
diff --git a/test/data/select/tests1.dat b/test/data/select/tests1.dat
index 5b29e54..5e42f98 100644
--- a/test/data/select/tests1.dat
+++ b/test/data/select/tests1.dat
@@ -3640,7 +3640,7 @@ flex-shrink: 1.000
flex-wrap: nowrap
float: none
font-family: sans-serif
-font-size: 14.391pt
+font-size: 10.600pt
font-style: normal
font-variant: normal
font-weight: normal
diff --git a/test/select.c b/test/select.c
index d317696..f21d937 100644
--- a/test/select.c
+++ b/test/select.c
@@ -1643,7 +1643,7 @@ css_error compute_font_size(void *pw, const css_hint
*parent, css_hint *size)
} else if (size->status == CSS_FONT_SIZE_SMALLER) {
/** \todo Step within table, if appropriate */
size->data.length.value =
- FMUL(parent_size->value, FLTTOFIX(1.2));
+ FDIV(parent_size->value, FLTTOFIX(1.2));
size->data.length.unit = parent_size->unit;
} else if (size->data.length.unit == CSS_UNIT_EM ||
size->data.length.unit == CSS_UNIT_EX) {
-----------------------------------------------------------------------
Summary of changes:
test/data/select/tests1.dat | 2 +-
test/select.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/data/select/tests1.dat b/test/data/select/tests1.dat
index 5b29e54..5e42f98 100644
--- a/test/data/select/tests1.dat
+++ b/test/data/select/tests1.dat
@@ -3640,7 +3640,7 @@ flex-shrink: 1.000
flex-wrap: nowrap
float: none
font-family: sans-serif
-font-size: 14.391pt
+font-size: 10.600pt
font-style: normal
font-variant: normal
font-weight: normal
diff --git a/test/select.c b/test/select.c
index d317696..f21d937 100644
--- a/test/select.c
+++ b/test/select.c
@@ -1643,7 +1643,7 @@ css_error compute_font_size(void *pw, const css_hint
*parent, css_hint *size)
} else if (size->status == CSS_FONT_SIZE_SMALLER) {
/** \todo Step within table, if appropriate */
size->data.length.value =
- FMUL(parent_size->value, FLTTOFIX(1.2));
+ FDIV(parent_size->value, FLTTOFIX(1.2));
size->data.length.unit = parent_size->unit;
} else if (size->data.length.unit == CSS_UNIT_EM ||
size->data.length.unit == CSS_UNIT_EX) {
--
Cascading Style Sheets library
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org