summaryrefslogtreecommitdiff
path: root/src/select/properties/background_position.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-09-04 14:56:51 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-09-04 14:56:51 +0100
commit2fcb157f28b152ba32e89baddbd811b0d6e76b79 (patch)
tree30f96332ac7993ff4acf88b4892f922a80ddd393 /src/select/properties/background_position.c
parent2fc4177a09cc6fc6706f84dbe157077a41b6e22b (diff)
downloadlibcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.gz
libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.bz2
Strip trailing whitespace.
Diffstat (limited to 'src/select/properties/background_position.c')
-rw-r--r--src/select/properties/background_position.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/select/properties/background_position.c b/src/select/properties/background_position.c
index e7b5d6f..d925b9c 100644
--- a/src/select/properties/background_position.c
+++ b/src/select/properties/background_position.c
@@ -14,7 +14,7 @@
#include "select/properties/properties.h"
#include "select/properties/helpers.h"
-css_error css__cascade_background_position(uint32_t opv, css_style *style,
+css_error css__cascade_background_position(uint32_t opv, css_style *style,
css_select_state *state)
{
uint16_t value = CSS_BACKGROUND_POSITION_INHERIT;
@@ -81,18 +81,18 @@ css_error css__cascade_background_position(uint32_t opv, css_style *style,
return CSS_OK;
}
-css_error css__set_background_position_from_hint(const css_hint *hint,
+css_error css__set_background_position_from_hint(const css_hint *hint,
css_computed_style *style)
{
- return set_background_position(style, hint->status,
+ return set_background_position(style, hint->status,
hint->data.position.h.value, hint->data.position.h.unit,
hint->data.position.v.value, hint->data.position.v.unit);
}
css_error css__initial_background_position(css_select_state *state)
{
- return set_background_position(state->computed,
- CSS_BACKGROUND_POSITION_SET,
+ return set_background_position(state->computed,
+ CSS_BACKGROUND_POSITION_SET,
0, CSS_UNIT_PCT, 0, CSS_UNIT_PCT);
}
@@ -102,7 +102,7 @@ css_error css__compose_background_position(const css_computed_style *parent,
{
css_fixed hlength = 0, vlength = 0;
css_unit hunit = CSS_UNIT_PX, vunit = CSS_UNIT_PX;
- uint8_t type = get_background_position(child, &hlength, &hunit,
+ uint8_t type = get_background_position(child, &hlength, &hunit,
&vlength, &vunit);
if (type == CSS_BACKGROUND_POSITION_INHERIT) {