diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-02 17:50:51 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-02 17:50:51 +0000 |
commit | f744c9dfa0b283af31eb9bada8ffb63809acb0db (patch) | |
tree | 6fe18e88c7bb40ec106655012912146f8a28fedc /render/box.h | |
parent | 4aef849eba41b28eb5ec8499627e1b98ae2a6b72 (diff) | |
download | netsurf-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/box.h')
-rw-r--r-- | render/box.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 |