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/parse/properties/border_spacing.c | |
parent | 2fc4177a09cc6fc6706f84dbe157077a41b6e22b (diff) | |
download | libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.gz libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.bz2 |
Strip trailing whitespace.
Diffstat (limited to 'src/parse/properties/border_spacing.c')
-rw-r--r-- | src/parse/properties/border_spacing.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/parse/properties/border_spacing.c b/src/parse/properties/border_spacing.c index e9949fd..2322a5a 100644 --- a/src/parse/properties/border_spacing.c +++ b/src/parse/properties/border_spacing.c @@ -27,8 +27,8 @@ * Post condition: \a *ctx is updated with the next token to process * If the input is invalid, then \a *ctx remains unchanged. */ -css_error css__parse_border_spacing(css_language *c, - const parserutils_vector *vector, int *ctx, +css_error css__parse_border_spacing(css_language *c, + const parserutils_vector *vector, int *ctx, css_style *result) { int orig_ctx = *ctx; @@ -65,7 +65,7 @@ css_error css__parse_border_spacing(css_language *c, return error; } - if (unit[0] & UNIT_ANGLE || unit[0] & UNIT_TIME || + if (unit[0] & UNIT_ANGLE || unit[0] & UNIT_TIME || unit[0] & UNIT_FREQ || unit[0] & UNIT_PCT) { *ctx = orig_ctx; return CSS_INVALID; @@ -78,16 +78,16 @@ css_error css__parse_border_spacing(css_language *c, token = parserutils_vector_peek(vector, *ctx); if (token != NULL) { /* Attempt second length, ignoring errors. - * The core !important parser will ensure + * The core !important parser will ensure * any remaining junk is thrown out. * Ctx will be preserved on error, as usual */ error = css__parse_unit_specifier(c, vector, ctx, UNIT_PX, &length[1], &unit[1]); if (error == CSS_OK) { - if (unit[1] & UNIT_ANGLE || + if (unit[1] & UNIT_ANGLE || unit[1] & UNIT_TIME || - unit[1] & UNIT_FREQ || + unit[1] & UNIT_FREQ || unit[1] & UNIT_PCT) { *ctx = orig_ctx; return CSS_INVALID; @@ -119,11 +119,11 @@ css_error css__parse_border_spacing(css_language *c, return error; } - error = css__stylesheet_style_vappend(result, - 4, - length[0], - unit[0], - length[1], + error = css__stylesheet_style_vappend(result, + 4, + length[0], + unit[0], + length[1], unit[1]); } |