summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Neves <lcneves@gmail.com>2017-09-30 20:21:48 (GMT)
committer Lucas Neves <lcneves@gmail.com>2017-10-01 18:29:54 (GMT)
commit1d8c8606177d42ac1e62ac5785eff173d827dc8f (patch)
treece62fec0bf398e31a8f6fbb01809b0d6fc6bd993
parentdc3870b3ec879b7229239743c60fe071fe9ddec5 (diff)
downloadlibcss-1d8c8606177d42ac1e62ac5785eff173d827dc8f.tar.gz
libcss-1d8c8606177d42ac1e62ac5785eff173d827dc8f.tar.bz2
Fixes use of spaces instead of tabs for whitespace.
-rw-r--r--test/dump_computed.h122
1 files changed, 61 insertions, 61 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h
index c33704a..2a8b009 100644
--- a/test/dump_computed.h
+++ b/test/dump_computed.h
@@ -283,8 +283,8 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* background-image */
val = css_computed_background_image(style, &url);
- if (val == CSS_BACKGROUND_IMAGE_INHERIT) {
- wrote = snprintf(ptr, *len, "background-image: inherit\n");
+ if (val == CSS_BACKGROUND_IMAGE_INHERIT) {
+ wrote = snprintf(ptr, *len, "background-image: inherit\n");
} else if (val == CSS_BACKGROUND_IMAGE_IMAGE && url != NULL) {
wrote = snprintf(ptr, *len, "background-image: url('%.*s')\n",
(int) lwc_string_length(url),
@@ -301,10 +301,10 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
val = css_computed_background_position(style, &len1, &unit1,
&len2, &unit2);
if (val == CSS_BACKGROUND_POSITION_INHERIT) {
- wrote = snprintf(ptr, *len, "background-position: inherit\n");
- ptr += wrote;
- *len -= wrote;
- } else if (val == CSS_BACKGROUND_POSITION_SET) {
+ wrote = snprintf(ptr, *len, "background-position: inherit\n");
+ ptr += wrote;
+ *len -= wrote;
+ } else if (val == CSS_BACKGROUND_POSITION_SET) {
wrote = snprintf(ptr, *len, "background-position: ");
ptr += wrote;
*len -= wrote;
@@ -372,10 +372,10 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* border-spacing */
val = css_computed_border_spacing(style, &len1, &unit1, &len2, &unit2);
- if (val == CSS_BORDER_SPACING_INHERIT) {
- wrote = snprintf(ptr, *len, "border-spacing: inherit\n");
- ptr += wrote;
- *len -= wrote;
+ if (val == CSS_BORDER_SPACING_INHERIT) {
+ wrote = snprintf(ptr, *len, "border-spacing: inherit\n");
+ ptr += wrote;
+ *len -= wrote;
} else if (val == CSS_BORDER_SPACING_SET) {
wrote = snprintf(ptr, *len, "border-spacing: ");
ptr += wrote;
@@ -1035,13 +1035,13 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* color */
val = css_computed_color(style, &color);
- if (val == CSS_COLOR_INHERIT) {
- wrote = snprintf(ptr, *len, "color: inherit\n");
+ if (val == CSS_COLOR_INHERIT) {
+ wrote = snprintf(ptr, *len, "color: inherit\n");
} else if (val == CSS_COLOR_COLOR) {
wrote = snprintf(ptr, *len, "color: #%08x\n", color);
}
- ptr += wrote;
- *len -= wrote;
+ ptr += wrote;
+ *len -= wrote;
/* column-count */
val = css_computed_column_count(style, &integer);
@@ -1122,8 +1122,8 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
color);
break;
}
- ptr += wrote;
- *len -= wrote;
+ ptr += wrote;
+ *len -= wrote;
/* column-rule-style */
val = css_computed_column_rule_style(style);
@@ -1357,9 +1357,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* counter-increment */
val = css_computed_counter_increment(style, &counter);
- if (val == CSS_COUNTER_INCREMENT_INHERIT) {
- wrote = snprintf(ptr, *len, "counter-increment: inherit\n");
- } else if (counter == NULL) {
+ if (val == CSS_COUNTER_INCREMENT_INHERIT) {
+ wrote = snprintf(ptr, *len, "counter-increment: inherit\n");
+ } else if (counter == NULL) {
wrote = snprintf(ptr, *len, "counter-increment: none\n");
} else {
wrote = snprintf(ptr, *len, "counter-increment:");
@@ -1387,8 +1387,8 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* counter-reset */
val = css_computed_counter_reset(style, &counter);
- if (val == CSS_COUNTER_RESET_INHERIT) {
- wrote = snprintf(ptr, *len, "counter-reset: inherit\n");
+ if (val == CSS_COUNTER_RESET_INHERIT) {
+ wrote = snprintf(ptr, *len, "counter-reset: inherit\n");
} else if (counter == NULL) {
wrote = snprintf(ptr, *len, "counter-reset: none\n");
} else {
@@ -1657,9 +1657,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* flex-grow */
val = css_computed_flex_grow(style, &len1);
switch (val) {
- case CSS_FLEX_GROW_INHERIT:
- wrote = snprintf(ptr, *len, "flex-grow: inherit\n");
- break;
+ case CSS_FLEX_GROW_INHERIT:
+ wrote = snprintf(ptr, *len, "flex-grow: inherit\n");
+ break;
case CSS_FLEX_GROW_SET:
wrote = snprintf(ptr, *len, "flex-grow: ");
ptr += wrote;
@@ -1681,9 +1681,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* flex-shrink */
val = css_computed_flex_shrink(style, &len1);
switch (val) {
- case CSS_FLEX_SHRINK_INHERIT:
- wrote = snprintf(ptr, *len, "flex-shrink: inherit\n");
- break;
+ case CSS_FLEX_SHRINK_INHERIT:
+ wrote = snprintf(ptr, *len, "flex-shrink: inherit\n");
+ break;
case CSS_FLEX_SHRINK_SET:
wrote = snprintf(ptr, *len, "flex-shrink: ");
ptr += wrote;
@@ -1749,10 +1749,10 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* font-family */
val = css_computed_font_family(style, &string_list);
if (val == CSS_FONT_FAMILY_INHERIT) {
- wrote = snprintf(ptr, *len, "font-family: inherit\n");
- ptr += wrote;
- *len -= wrote;
- } else {
+ wrote = snprintf(ptr, *len, "font-family: inherit\n");
+ ptr += wrote;
+ *len -= wrote;
+ } else {
wrote = snprintf(ptr, *len, "font-family:");
ptr += wrote;
*len -= wrote;
@@ -2085,8 +2085,8 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* list-style-image */
val = css_computed_list_style_image(style, &url);
- if (val == CSS_LIST_STYLE_IMAGE_INHERIT) {
- wrote = snprintf(ptr, *len, "list-style-image: inherit\n");
+ if (val == CSS_LIST_STYLE_IMAGE_INHERIT) {
+ wrote = snprintf(ptr, *len, "list-style-image: inherit\n");
} else if (url != NULL) {
wrote = snprintf(ptr, *len, "list-style-image: url('%.*s')\n",
(int) lwc_string_length(url),
@@ -2344,10 +2344,10 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
switch (val) {
case CSS_MIN_HEIGHT_INHERIT:
wrote = snprintf(ptr, *len, "min-height: inherit\n");
- break;
+ break;
case CSS_MIN_HEIGHT_AUTO:
wrote = snprintf(ptr, *len, "min-height: auto\n");
- break;
+ break;
case CSS_MIN_HEIGHT_SET:
wrote = snprintf(ptr, *len, "min-height: ");
ptr += wrote;
@@ -2369,12 +2369,12 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* min-width */
val = css_computed_min_width(style, &len1, &unit1);
switch (val) {
- case CSS_MIN_WIDTH_INHERIT:
- wrote = snprintf(ptr, *len, "min-width: inherit\n");
- break;
- case CSS_MIN_WIDTH_AUTO:
- wrote = snprintf(ptr, *len, "min-width: auto\n");
- break;
+ case CSS_MIN_WIDTH_INHERIT:
+ wrote = snprintf(ptr, *len, "min-width: inherit\n");
+ break;
+ case CSS_MIN_WIDTH_AUTO:
+ wrote = snprintf(ptr, *len, "min-width: auto\n");
+ break;
case CSS_MIN_WIDTH_SET:
wrote = snprintf(ptr, *len, "min-width: ");
ptr += wrote;
@@ -2396,9 +2396,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* opacity */
val = css_computed_opacity(style, &len1);
switch (val) {
- case CSS_OPACITY_INHERIT:
- wrote = snprintf(ptr, *len, "opacity: inherit\n");
- break;
+ case CSS_OPACITY_INHERIT:
+ wrote = snprintf(ptr, *len, "opacity: inherit\n");
+ break;
case CSS_OPACITY_SET:
wrote = snprintf(ptr, *len, "opacity: ");
ptr += wrote;
@@ -2578,9 +2578,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* padding-top */
val = css_computed_padding_top(style, &len1, &unit1);
switch (val) {
- case CSS_PADDING_INHERIT:
- wrote = snprintf(ptr, *len, "padding-top: inherit\n");
- break;
+ case CSS_PADDING_INHERIT:
+ wrote = snprintf(ptr, *len, "padding-top: inherit\n");
+ break;
case CSS_PADDING_SET:
wrote = snprintf(ptr, *len, "padding-top: ");
ptr += wrote;
@@ -2602,9 +2602,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* padding-right */
val = css_computed_padding_right(style, &len1, &unit1);
switch (val) {
- case CSS_PADDING_INHERIT:
- wrote = snprintf(ptr, *len, "padding-right: inherit\n");
- break;
+ case CSS_PADDING_INHERIT:
+ wrote = snprintf(ptr, *len, "padding-right: inherit\n");
+ break;
case CSS_PADDING_SET:
wrote = snprintf(ptr, *len, "padding-right: ");
ptr += wrote;
@@ -2626,9 +2626,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* padding-bottom */
val = css_computed_padding_bottom(style, &len1, &unit1);
switch (val) {
- case CSS_PADDING_INHERIT:
- wrote = snprintf(ptr, *len, "padding-bottom: inherit\n");
- break;
+ case CSS_PADDING_INHERIT:
+ wrote = snprintf(ptr, *len, "padding-bottom: inherit\n");
+ break;
case CSS_PADDING_SET:
wrote = snprintf(ptr, *len, "padding-bottom: ");
ptr += wrote;
@@ -2650,9 +2650,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* padding-left */
val = css_computed_padding_left(style, &len1, &unit1);
switch (val) {
- case CSS_PADDING_INHERIT:
- wrote = snprintf(ptr, *len, "padding-left: inherit\n");
- break;
+ case CSS_PADDING_INHERIT:
+ wrote = snprintf(ptr, *len, "padding-left: inherit\n");
+ break;
case CSS_PADDING_SET:
wrote = snprintf(ptr, *len, "padding-left: ");
ptr += wrote;
@@ -2815,8 +2815,8 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* text-decoration */
val = css_computed_text_decoration(style);
- if (val == CSS_TEXT_DECORATION_INHERIT) {
- wrote = snprintf(ptr, *len, "text-decoration: inherit\n");
+ if (val == CSS_TEXT_DECORATION_INHERIT) {
+ wrote = snprintf(ptr, *len, "text-decoration: inherit\n");
ptr += wrote;
*len -= wrote;
} else if (val == CSS_TEXT_DECORATION_NONE) {
@@ -2857,9 +2857,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf,
/* text-indent */
val = css_computed_text_indent(style, &len1, &unit1);
switch (val) {
- case CSS_TEXT_INDENT_INHERIT:
- wrote = snprintf(ptr, *len, "text-indent: inherit\n");
- break;
+ case CSS_TEXT_INDENT_INHERIT:
+ wrote = snprintf(ptr, *len, "text-indent: inherit\n");
+ break;
case CSS_TEXT_INDENT_SET:
wrote = snprintf(ptr, *len, "text-indent: ");
ptr += wrote;