summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-06-05 20:54:37 +0000
committerJames Bursa <james@netsurf-browser.org>2005-06-05 20:54:37 +0000
commit57b68bd9332f4c1636073ab8dd10a3ce50a173cf (patch)
tree8323cb6b6ed9a63b75751c6fa892c6f927c2c833 /render/box.h
parent99a483dd7b744ede170eeffde5ec30fd8ed1a0e5 (diff)
downloadnetsurf-57b68bd9332f4c1636073ab8dd10a3ce50a173cf.tar.gz
netsurf-57b68bd9332f4c1636073ab8dd10a3ce50a173cf.tar.bz2
[project @ 2005-06-05 20:54:37 by bursa]
More work on borders / padding / margins on inline elements. Add BOX_INLINE_END to hold the right border / padding / margin (left is in the BOX_INLINE). svn path=/import/netsurf/; revision=1742
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/render/box.h b/render/box.h
index b377cd91a..f8fe0db90 100644
--- a/render/box.h
+++ b/render/box.h
@@ -91,7 +91,8 @@ typedef enum {
BOX_TABLE, BOX_TABLE_ROW, BOX_TABLE_CELL,
BOX_TABLE_ROW_GROUP,
BOX_FLOAT_LEFT, BOX_FLOAT_RIGHT,
- BOX_INLINE_BLOCK, BOX_BR, BOX_TEXT
+ BOX_INLINE_BLOCK, BOX_BR, BOX_TEXT,
+ BOX_INLINE_END
} box_type;
/** Node in box tree. All dimensions are in pixels. */
@@ -166,11 +167,9 @@ struct box {
struct box *last; /**< Last child box, or 0. */
struct box *parent; /**< Parent box, or 0. */
struct box *fallback; /**< Fallback children for object, or 0. */
- /** Sibling box after the last sibling box which was a child of this box
- * in the document tree (the box after is used so that splitting boxes
- * for line wrapping doesn't change it), or 0 if continues to end of
- * inline container (only valid for INLINE boxes). */
- struct box *end_inline_children;
+ /** INLINE_END box corresponding to this INLINE box, or INLINE box
+ * corresponding to this INLINE_END box. */
+ struct box *inline_end;
/** 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