diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-10-13 12:30:23 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-10-13 12:30:23 +0000 |
commit | 7293b6f4bb9c456fd2a540d36c54d3ad9fbecc23 (patch) | |
tree | 6ed485c0c0e85d162f17c2692394576926cb201a | |
parent | a5ac56655c3526ba9b6ba0bf92c38d9e206383ac (diff) | |
download | netsurf-7293b6f4bb9c456fd2a540d36c54d3ad9fbecc23.tar.gz netsurf-7293b6f4bb9c456fd2a540d36c54d3ad9fbecc23.tar.bz2 |
Tidy up where spaces were used for indentation.
svn path=/trunk/netsurf/; revision=5555
-rw-r--r-- | render/layout.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/render/layout.c b/render/layout.c index 9065e7d89..226813ea2 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1266,14 +1266,18 @@ bool layout_inline_container(struct box *inline_container, int width, has_text_children = false; for (c = inline_container->children; c; c = c->next) { - bool is_pre = false; - if (c->style) - is_pre = (c->style->white_space == CSS_WHITE_SPACE_PRE || - c->style->white_space == CSS_WHITE_SPACE_PRE_LINE || - c->style->white_space == CSS_WHITE_SPACE_PRE_WRAP); - if ((!c->object && c->text && (c->length || is_pre)) || c->type == BOX_BR) - has_text_children = true; - } + bool is_pre = false; + if (c->style) + is_pre = (c->style->white_space == + CSS_WHITE_SPACE_PRE || + c->style->white_space == + CSS_WHITE_SPACE_PRE_LINE || + c->style->white_space == + CSS_WHITE_SPACE_PRE_WRAP); + if ((!c->object && c->text && (c->length || is_pre)) || + c->type == BOX_BR) + has_text_children = true; + } /** \todo fix wrapping so that a box with horizontal scrollbar will * shrink back to 'width' if no word is wider than 'width' (Or just set @@ -1527,7 +1531,7 @@ bool layout_line(struct box *first, int *width, int *y, } if (b->width == UNKNOWN_WIDTH) { - /** \todo handle errors */ + /** \todo handle errors */ /* If it's a select element, we must use the * width of the widest option text */ @@ -2084,7 +2088,7 @@ struct box *layout_minmax_line(struct box *first, continue; if (b->width == UNKNOWN_WIDTH) { - /** \todo handle errors */ + /** \todo handle errors */ /* If it's a select element, we must use the * width of the widest option text */ |