diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-04-13 11:43:13 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-04-13 11:43:13 +0000 |
commit | 89ef7a8acf13143ac0283aa1cfa5ea504b92324b (patch) | |
tree | 26564857b03f2c495a05073d3418af7f7a4a5d99 /include | |
parent | 3f008ebef592b39c93b21dd66dfbe2fd23b6860e (diff) | |
download | libcss-89ef7a8acf13143ac0283aa1cfa5ea504b92324b.tar.gz libcss-89ef7a8acf13143ac0283aa1cfa5ea504b92324b.tar.bz2 |
Complete widows and orphans support. Thanks to James Montgomerie.
svn path=/trunk/libcss/; revision=13864
Diffstat (limited to 'include')
-rw-r--r-- | include/libcss/computed.h | 7 | ||||
-rw-r--r-- | include/libcss/properties.h | 10 |
2 files changed, 17 insertions, 0 deletions
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, |