mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 09:12:44 +03:00
Remove duplicate branch in relative position handling.
This commit is contained in:
parent
df3a889435
commit
69776768d2
@ -4493,14 +4493,14 @@ void layout_compute_relative_offset(struct box *box, int *x, int *y)
|
||||
|
||||
assert(left == -right);
|
||||
|
||||
if (top == AUTO && bottom == AUTO)
|
||||
if (top == AUTO && bottom == AUTO) {
|
||||
top = bottom = 0;
|
||||
else if (top == AUTO)
|
||||
} else if (top == AUTO) {
|
||||
top = -bottom;
|
||||
else if (bottom == AUTO)
|
||||
bottom = -top;
|
||||
else
|
||||
} else {
|
||||
/* bottom is AUTO, or neither are AUTO */
|
||||
bottom = -top;
|
||||
}
|
||||
|
||||
#ifdef LAYOUT_DEBUG
|
||||
LOG(("left %i, right %i, top %i, bottom %i", left, right, top, bottom));
|
||||
|
Loading…
Reference in New Issue
Block a user