summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-02 17:50:51 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-02 17:50:51 +0000
commitf744c9dfa0b283af31eb9bada8ffb63809acb0db (patch)
tree6fe18e88c7bb40ec106655012912146f8a28fedc /render/layout.c
parent4aef849eba41b28eb5ec8499627e1b98ae2a6b72 (diff)
downloadnetsurf-f744c9dfa0b283af31eb9bada8ffb63809acb0db.tar.gz
netsurf-f744c9dfa0b283af31eb9bada8ffb63809acb0db.tar.bz2
Make box flags and move new line indicator to it.
svn path=/trunk/netsurf/; revision=11886
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c
index 568a4da8b..4a6718fe1 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -2560,7 +2560,7 @@ bool layout_line(struct box *first, int *width, int *y,
}
for (d = first; d != b; d = d->next) {
- d->inline_new_line = false;
+ d->flags &= ~NEW_LINE;
if (d->type == BOX_INLINE_BLOCK &&
(css_computed_position(d->style) ==
@@ -2601,7 +2601,7 @@ bool layout_line(struct box *first, int *width, int *y,
}
}
- first->inline_new_line = true;
+ first->flags |= NEW_LINE;
assert(b != first || (move_y && 0 < used_height && (left || right)));