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/content.c | |
parent | 2fc4177a09cc6fc6706f84dbe157077a41b6e22b (diff) | |
download | libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.gz libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.bz2 |
Strip trailing whitespace.
Diffstat (limited to 'src/select/properties/content.c')
-rw-r--r-- | src/select/properties/content.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/select/properties/content.c b/src/select/properties/content.c index 472a66a..0506ef3 100644 --- a/src/select/properties/content.c +++ b/src/select/properties/content.c @@ -14,7 +14,7 @@ #include "select/properties/properties.h" #include "select/properties/helpers.h" -css_error css__cascade_content(uint32_t opv, css_style *style, +css_error css__cascade_content(uint32_t opv, css_style *style, css_select_state *state) { uint16_t value = CSS_CONTENT_INHERIT; @@ -30,14 +30,14 @@ css_error css__cascade_content(uint32_t opv, css_style *style, value = CSS_CONTENT_NONE; } else { value = CSS_CONTENT_SET; - + while (v != CONTENT_NORMAL) { lwc_string *he; css_computed_content_item *temp; css__stylesheet_string_get(style->sheet, *((css_code_t *) style->bytecode), &he); - + temp = realloc(content, (n_contents + 1) * sizeof(css_computed_content_item)); @@ -63,7 +63,7 @@ css_error css__cascade_content(uint32_t opv, css_style *style, case CONTENT_COUNTERS: { lwc_string *sep; - + advance_bytecode(style, sizeof(css_code_t)); css__stylesheet_string_get(style->sheet, *((css_code_t *) style->bytecode), &sep); @@ -155,7 +155,7 @@ css_error css__cascade_content(uint32_t opv, css_style *style, return CSS_OK; } -css_error css__set_content_from_hint(const css_hint *hint, +css_error css__set_content_from_hint(const css_hint *hint, css_computed_style *style) { css_computed_content_item *item; @@ -221,16 +221,16 @@ css_error css__compose_content(const css_computed_style *parent, if (type == CSS_CONTENT_SET) { const css_computed_content_item *i; - for (i = items; i->type != CSS_COMPUTED_CONTENT_NONE; + for (i = items; i->type != CSS_COMPUTED_CONTENT_NONE; i++) n_items++; - copy = malloc((n_items + 1) * + copy = malloc((n_items + 1) * sizeof(css_computed_content_item)); if (copy == NULL) return CSS_NOMEM; - memcpy(copy, items, (n_items + 1) * + memcpy(copy, items, (n_items + 1) * sizeof(css_computed_content_item)); } |