mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Layout: Tidy condition so it can be read.
This commit is contained in:
parent
97007d095e
commit
948207472a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user