From 57b68bd9332f4c1636073ab8dd10a3ce50a173cf Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 5 Jun 2005 20:54:37 +0000 Subject: [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 --- render/box.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'render/box.h') 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 -- cgit v1.2.3