From f744c9dfa0b283af31eb9bada8ffb63809acb0db Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 2 Mar 2011 17:50:51 +0000 Subject: Make box flags and move new line indicator to it. svn path=/trunk/netsurf/; revision=11886 --- render/box.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'render/box.h') diff --git a/render/box.h b/render/box.h index e49bfddd7..0f3d06f7c 100644 --- a/render/box.h +++ b/render/box.h @@ -115,6 +115,12 @@ typedef enum { BOX_INLINE_END, BOX_NONE } box_type; + +/** Type of a struct box. */ +typedef enum { + NEW_LINE = 1 << 0 /* first inline on a new line */ +} box_flags; + /* Sides of a box */ enum box_side { TOP, RIGHT, BOTTOM, LEFT }; @@ -132,6 +138,9 @@ struct box { /** Type of box. */ box_type type; + /** Box flags */ + box_flags flags; + /** Computed styles for elements and their pseudo elements. NULL on * non-element boxes. */ css_select_results *styles; @@ -219,7 +228,6 @@ struct box { /** INLINE_END box corresponding to this INLINE box, or INLINE box * corresponding to this INLINE_END box. */ struct box *inline_end; - bool inline_new_line; /** First float child box, or 0. Float boxes are in the tree twice, in * this list for the block box which defines the area for floats, and -- cgit v1.2.3