From 22640f85e0d245df817df96afa18d382e3a1b49a Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 22 May 2005 21:50:14 +0000 Subject: [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 --- render/box.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'render/box.c') 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) -- cgit v1.2.3