diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-09-04 14:56:51 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-09-04 14:56:51 +0100 |
commit | 2fcb157f28b152ba32e89baddbd811b0d6e76b79 (patch) | |
tree | 30f96332ac7993ff4acf88b4892f922a80ddd393 /src/select/properties/helpers.c | |
parent | 2fc4177a09cc6fc6706f84dbe157077a41b6e22b (diff) | |
download | libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.gz |
Strip trailing whitespace.
Diffstat (limited to 'src/select/properties/helpers.c')
-rw-r--r-- | src/select/properties/helpers.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/select/properties/helpers.c b/src/select/properties/helpers.c index 1091a10..36c3cba 100644 --- a/src/select/properties/helpers.c +++ b/src/select/properties/helpers.c @@ -46,17 +46,17 @@ css_unit css__to_css_unit(uint32_t u) * Utilities below here * ******************************************************************************/ css_error css__cascade_bg_border_color(uint32_t opv, css_style *style, - css_select_state *state, + css_select_state *state, css_error (*fun)(css_computed_style *, uint8_t, css_color)) { uint16_t value = CSS_BACKGROUND_COLOR_INHERIT; css_color color = 0; - assert(CSS_BACKGROUND_COLOR_INHERIT == + assert(CSS_BACKGROUND_COLOR_INHERIT == (enum css_background_color_e)CSS_BORDER_COLOR_INHERIT); - assert(CSS_BACKGROUND_COLOR_COLOR == + assert(CSS_BACKGROUND_COLOR_COLOR == (enum css_background_color_e)CSS_BORDER_COLOR_COLOR); - assert(CSS_BACKGROUND_COLOR_CURRENT_COLOR == + assert(CSS_BACKGROUND_COLOR_CURRENT_COLOR == (enum css_background_color_e)CSS_BORDER_COLOR_CURRENT_COLOR); if (isInherit(opv) == false) { @@ -85,7 +85,7 @@ css_error css__cascade_bg_border_color(uint32_t opv, css_style *style, css_error css__cascade_uri_none(uint32_t opv, css_style *style, css_select_state *state, - css_error (*fun)(css_computed_style *, uint8_t, + css_error (*fun)(css_computed_style *, uint8_t, lwc_string *)) { uint16_t value = CSS_BACKGROUND_IMAGE_INHERIT; @@ -105,7 +105,7 @@ css_error css__cascade_uri_none(uint32_t opv, css_style *style, } /** \todo lose fun != NULL once all properties have set routines */ - if (fun != NULL && css__outranks_existing(getOpcode(opv), + if (fun != NULL && css__outranks_existing(getOpcode(opv), isImportant(opv), state, isInherit(opv))) { return fun(state->computed, value, uri); } @@ -114,7 +114,7 @@ css_error css__cascade_uri_none(uint32_t opv, css_style *style, } css_error css__cascade_border_style(uint32_t opv, css_style *style, - css_select_state *state, + css_select_state *state, css_error (*fun)(css_computed_style *, uint8_t)) { uint16_t value = CSS_BORDER_STYLE_INHERIT; @@ -165,8 +165,8 @@ css_error css__cascade_border_style(uint32_t opv, css_style *style, } css_error css__cascade_border_width(uint32_t opv, css_style *style, - css_select_state *state, - css_error (*fun)(css_computed_style *, uint8_t, css_fixed, + css_select_state *state, + css_error (*fun)(css_computed_style *, uint8_t, css_fixed, css_unit)) { uint16_t value = CSS_BORDER_WIDTH_INHERIT; @@ -326,7 +326,7 @@ css_error css__cascade_length(uint32_t opv, css_style *style, unit = css__to_css_unit(unit); /** \todo lose fun != NULL once all properties have set routines */ - if (fun != NULL && css__outranks_existing(getOpcode(opv), + if (fun != NULL && css__outranks_existing(getOpcode(opv), isImportant(opv), state, isInherit(opv))) { return fun(state->computed, value, length, unit); } @@ -350,7 +350,7 @@ css_error css__cascade_number(uint32_t opv, css_style *style, } /** \todo lose fun != NULL once all properties have set routines */ - if (fun != NULL && css__outranks_existing(getOpcode(opv), + if (fun != NULL && css__outranks_existing(getOpcode(opv), isImportant(opv), state, isInherit(opv))) { return fun(state->computed, value, length); } @@ -358,7 +358,7 @@ css_error css__cascade_number(uint32_t opv, css_style *style, return CSS_OK; } -css_error css__cascade_page_break_after_before_inside(uint32_t opv, +css_error css__cascade_page_break_after_before_inside(uint32_t opv, css_style *style, css_select_state *state, css_error (*fun)(css_computed_style *, uint8_t)) { @@ -387,7 +387,7 @@ css_error css__cascade_page_break_after_before_inside(uint32_t opv, } /** \todo lose fun != NULL */ - if (fun != NULL && css__outranks_existing(getOpcode(opv), + if (fun != NULL && css__outranks_existing(getOpcode(opv), isImportant(opv), state, isInherit(opv))) { return fun(state->computed, value); } @@ -471,7 +471,7 @@ css_error css__cascade_counter_increment_reset(uint32_t opv, css_style *style, advance_bytecode(style, sizeof(css_code_t)); temp = realloc(counters, - (n_counters + 1) * + (n_counters + 1) * sizeof(css_computed_counter)); if (temp == NULL) { if (counters != NULL) { |