diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-01-10 15:21:06 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-01-10 15:21:06 +0000 |
commit | a3737b84a9ab76421cca972139b2ec5a6572ab72 (patch) | |
tree | 7c7f4d8e3715ecc80b1a1f9fb42eef9ff654f74e /src/select/propset.h | |
parent | faf8b75e949c891738fb3a2e404e37c6a76ae252 (diff) | |
download | libcss-a3737b84a9ab76421cca972139b2ec5a6572ab72.tar.gz libcss-a3737b84a9ab76421cca972139b2ec5a6572ab72.tar.bz2 |
Various changes for orphans and widows properties:
+ Keep as int internally, rather than css_fixed.
+ Fix get_widows to return widows instead of orphans.
+ Remove duplicate implementations in css_computed_ getters.
Diffstat (limited to 'src/select/propset.h')
-rw-r--r-- | src/select/propset.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/select/propset.h b/src/select/propset.h index 5af7e8b..4aa15af 100644 --- a/src/select/propset.h +++ b/src/select/propset.h @@ -1952,12 +1952,12 @@ static inline css_error set_page_break_inside( #define ORPHANS_SHIFT 0 #define ORPHANS_MASK 0x1 static inline css_error set_orphans( - css_computed_style *style, uint8_t type, css_fixed count) + css_computed_style *style, uint8_t type, int32_t count) { uint8_t *bits; if (style->page == NULL) { - if (type == CSS_ORPHANS_SET && count == INTTOFIX(2)) { + if (type == CSS_ORPHANS_SET && count == 2) { return CSS_OK; } } @@ -1981,12 +1981,12 @@ static inline css_error set_orphans( #define WIDOWS_SHIFT 1 #define WIDOWS_MASK 0x2 static inline css_error set_widows( - css_computed_style *style, uint8_t type, css_fixed count) + css_computed_style *style, uint8_t type, int32_t count) { uint8_t *bits; if (style->page == NULL) { - if (type == CSS_WIDOWS_SET && count == INTTOFIX(2)) { + if (type == CSS_WIDOWS_SET && count == 2) { return CSS_OK; } } |