summaryrefslogtreecommitdiff
path: root/test/select-auto.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-16 14:37:55 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-16 14:37:55 +0000
commitda7915e3931a0b43d75d2a1e041f339f356e1d4b (patch)
tree4c9c0f2d57673b2f8adc5c119ce0a7ca47955809 /test/select-auto.c
parentda878aa8d77630cb1f54d84e56eaa6df545e2dbd (diff)
downloadlibcss-da7915e3931a0b43d75d2a1e041f339f356e1d4b.tar.gz
libcss-da7915e3931a0b43d75d2a1e041f339f356e1d4b.tar.bz2
Add a flag to the font size computation callback to indicate that the resultant absolute font size should not be clamped to a fixed minimum (e.g. if the client has a minimum permissible font size)
svn path=/trunk/libcss/; revision=8586
Diffstat (limited to 'test/select-auto.c')
-rw-r--r--test/select-auto.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/select-auto.c b/test/select-auto.c
index c52cb0a..f0c4fef 100644
--- a/test/select-auto.c
+++ b/test/select-auto.c
@@ -117,7 +117,7 @@ static css_error node_presentational_hint(void *pw, void *node,
static css_error ua_default_for_property(void *pw, uint32_t property,
css_hint *hint);
static css_error compute_font_size(void *pw, const css_hint *parent,
- css_hint *size);
+ bool may_clamp, css_hint *size);
static css_select_handler select_handler = {
node_name,
@@ -1113,7 +1113,8 @@ css_error ua_default_for_property(void *pw, uint32_t property, css_hint *hint)
return CSS_OK;
}
-css_error compute_font_size(void *pw, const css_hint *parent, css_hint *size)
+css_error compute_font_size(void *pw, const css_hint *parent,
+ bool may_clamp, css_hint *size)
{
static css_hint_length sizes[] = {
{ FLTTOFIX(6.75), CSS_UNIT_PT },
@@ -1127,6 +1128,7 @@ css_error compute_font_size(void *pw, const css_hint *parent, css_hint *size)
const css_hint_length *parent_size;
UNUSED(pw);
+ UNUSED(may_clamp);
/* Grab parent size, defaulting to medium if none */
if (parent == NULL) {