From 89ef7a8acf13143ac0283aa1cfa5ea504b92324b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 13 Apr 2012 11:43:13 +0000 Subject: Complete widows and orphans support. Thanks to James Montgomerie. svn path=/trunk/libcss/; revision=13864 --- include/libcss/computed.h | 7 +++++++ include/libcss/properties.h | 10 ++++++++++ 2 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/libcss/computed.h b/include/libcss/computed.h index 51fcb12..843795e 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -388,6 +388,13 @@ uint8_t css_computed_page_break_before( uint8_t css_computed_page_break_inside( const css_computed_style *style); +uint8_t css_computed_orphans( + const css_computed_style *style, + int32_t *orphans); + +uint8_t css_computed_widows( + const css_computed_style *style, + int32_t *widows); #ifdef __cplusplus } diff --git a/include/libcss/properties.h b/include/libcss/properties.h index 5257e19..feba9ce 100644 --- a/include/libcss/properties.h +++ b/include/libcss/properties.h @@ -585,6 +585,11 @@ enum css_overflow_e { CSS_OVERFLOW_AUTO = 0x4 }; +enum css_orphans_e { + CSS_ORPHANS_INHERIT = 0x0, + CSS_ORPHANS_SET = 0x1 +}; + enum css_padding_e { CSS_PADDING_INHERIT = 0x0, CSS_PADDING_SET = 0x1 @@ -718,6 +723,11 @@ enum css_white_space_e { CSS_WHITE_SPACE_PRE_LINE = 0x5 }; +enum css_widows_e { + CSS_WIDOWS_INHERIT = 0x0, + CSS_WIDOWS_SET = 0x1 +}; + enum css_width_e { CSS_WIDTH_INHERIT = 0x0, CSS_WIDTH_SET = 0x1, -- cgit v1.2.3