diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-16 14:37:55 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-16 14:37:55 +0000 |
commit | da7915e3931a0b43d75d2a1e041f339f356e1d4b (patch) | |
tree | 4c9c0f2d57673b2f8adc5c119ce0a7ca47955809 /include | |
parent | da878aa8d77630cb1f54d84e56eaa6df545e2dbd (diff) | |
download | libcss-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 'include')
-rw-r--r-- | include/libcss/computed.h | 1 | ||||
-rw-r--r-- | include/libcss/select.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/libcss/computed.h b/include/libcss/computed.h index a55cc4b..df2f5cf 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -341,6 +341,7 @@ css_error css_computed_style_compose(const css_computed_style *parent, const css_computed_style *child, css_error (*compute_font_size)(void *pw, const struct css_hint *parent, + bool may_clamp, struct css_hint *size), void *pw, css_computed_style *result); diff --git a/include/libcss/select.h b/include/libcss/select.h index e961275..5eaf120 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -69,7 +69,7 @@ typedef struct css_select_handler { css_hint *hint); css_error (*compute_font_size)(void *pw, const css_hint *parent, - css_hint *size); + bool may_clamp, css_hint *size); } css_select_handler; css_error css_select_ctx_create(css_allocator_fn alloc, void *pw, |