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.c | |
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.c')
-rw-r--r-- | render/box.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c index f00b8aa1d..51db3c0cf 100644 --- a/render/box.c +++ b/render/box.c @@ -76,6 +76,7 @@ struct box * box_create(struct css_style *style, box->last = NULL; box->parent = NULL; box->fallback = NULL; + box->inline_parent = NULL; box->float_children = NULL; box->next_float = NULL; box->col = NULL; @@ -457,6 +458,7 @@ void box_dump(struct box *box, unsigned int depth) case BOX_FLOAT_LEFT: fprintf(stderr, "FLOAT_LEFT "); break; case BOX_FLOAT_RIGHT: fprintf(stderr, "FLOAT_RIGHT "); break; case BOX_BR: fprintf(stderr, "BR "); break; + case BOX_TEXT: fprintf(stderr, "TEXT "); break; default: fprintf(stderr, "Unknown box type "); } @@ -474,6 +476,8 @@ void box_dump(struct box *box, unsigned int depth) fprintf(stderr, " [%s]", box->title); if (box->id != 0) fprintf(stderr, " <%s>", box->id); + if (box->inline_parent) + fprintf(stderr, " inline_parent %p", box->inline_parent); if (box->float_children) fprintf(stderr, " float_children %p", box->float_children); if (box->next_float) |