summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-01-20 18:27:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2016-01-20 18:27:15 +0000
commit018adc2f5e332609dfbd71b4c29951dd80f9f67e (patch)
treed9eda88dd025e9cd86b3c60a889d456de35352d3 /render
parent54c153246ca76bdd3acb7667fe1106f04a0a9856 (diff)
downloadnetsurf-018adc2f5e332609dfbd71b4c29951dd80f9f67e.tar.gz
netsurf-018adc2f5e332609dfbd71b4c29951dd80f9f67e.tar.bz2
Remove redundant condition in white hot path.
Diffstat (limited to 'render')
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 7905eabb7..008be2426 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -2071,7 +2071,7 @@ void find_sides(struct box *fl, int y0, int y1,
*x0 = fx1;
*left = fl;
}
- } else if (fl->type == BOX_FLOAT_RIGHT) {
+ } else {
fx0 = fl->x;
if (fx0 < *x1) {
*x1 = fx0;