diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-06-29 14:58:32 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-06-29 14:58:32 +0100 |
commit | 948207472ac1d405e6e6552eb51c6ed1a67ee32e (patch) | |
tree | 8af751db0589a1707b7ca03d38a228507634e628 /content/handlers | |
parent | 97007d095e25af302abeb32662353f84f720863c (diff) | |
download | netsurf-948207472ac1d405e6e6552eb51c6ed1a67ee32e.tar.gz netsurf-948207472ac1d405e6e6552eb51c6ed1a67ee32e.tar.bz2 |
Layout: Tidy condition so it can be read.
Diffstat (limited to 'content/handlers')
-rw-r--r-- | content/handlers/html/layout.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/content/handlers/html/layout.c b/content/handlers/html/layout.c index 2d2c42438..e9112faf1 100644 --- a/content/handlers/html/layout.c +++ b/content/handlers/html/layout.c @@ -4138,13 +4138,12 @@ layout_block_context(struct box *block, } /* Vertical margin */ - if (((box->type == BOX_BLOCK && - (box->flags & HAS_HEIGHT)) || - box->type == BOX_TABLE || - (box->type == BOX_INLINE_CONTAINER && - box != box->parent->children) || - margin_collapse == box) && - in_margin == true) { + if (((box->type == BOX_BLOCK && (box->flags & HAS_HEIGHT)) || + box->type == BOX_TABLE || + (box->type == BOX_INLINE_CONTAINER && + box != box->parent->children) || + margin_collapse == box) && + in_margin == true) { /* Margin goes above this box. */ cy += max_pos_margin - max_neg_margin; box->y += max_pos_margin - max_neg_margin; |