diff options
author | James Bursa <james@netsurf-browser.org> | 2005-05-22 21:50:14 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-05-22 21:50:14 +0000 |
commit | 22640f85e0d245df817df96afa18d382e3a1b49a (patch) | |
tree | 57420cd508f6bd05fe7ad4fff3d8438a91ebf770 /render/box.h | |
parent | 48d1759374e95bbc0c59fa2c87e9e8122f0e1273 (diff) | |
download | netsurf-22640f85e0d245df817df96afa18d382e3a1b49a.tar.gz netsurf-22640f85e0d245df817df96afa18d382e3a1b49a.tar.bz2 |
[project @ 2005-05-22 21:50:14 by bursa]
Add BOX_TEXT type to distinguish boxes which came from an inline element to boxes which came from a text node. Add inline_parent pointer to box structure. Rewrite text-decoration support to take advantage of the new data (line colours are now correct). Note: there is a clipping issue in redraw.
svn path=/import/netsurf/; revision=1732
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/render/box.h b/render/box.h index 60aba1ba5..9bef5edd3 100644 --- a/render/box.h +++ b/render/box.h @@ -141,7 +141,8 @@ struct box { int min_width; int max_width; /**< Width that would be taken with no line breaks. */ - unsigned byte_offset; /**< byte offset within a textual representation of this content */ + /**< Byte offset within a textual representation of this content. */ + size_t byte_offset; char *text; /**< Text, or 0 if none. Unterminated. */ size_t length; /**< Length of text. */ @@ -165,6 +166,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. */ + /** Box of type INLINE which contains this box in the document tree + * (only valid for TEXT boxes). */ + struct box *inline_parent; /** 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 |