summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h10
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