diff options
author | James Bursa <james@netsurf-browser.org> | 2005-06-04 12:12:38 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-06-04 12:12:38 +0000 |
commit | 99a483dd7b744ede170eeffde5ec30fd8ed1a0e5 (patch) | |
tree | 9fdca15976a6ae4bbd442c56d61ae8b50e488805 /render/html_redraw.c | |
parent | b2918fc57bc1069913525224dff3e2e18f3db504 (diff) | |
download | netsurf-99a483dd7b744ede170eeffde5ec30fd8ed1a0e5.tar.gz netsurf-99a483dd7b744ede170eeffde5ec30fd8ed1a0e5.tar.bz2 |
[project @ 2005-06-04 12:12:38 by bursa]
Fix text-decoration and borders on inline elements by replacing inline_parent in box structure with end_inline_children.
svn path=/import/netsurf/; revision=1741
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r-- | render/html_redraw.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index 68a20bf88..d6b255de2 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -464,7 +464,7 @@ bool html_redraw_borders(struct box *box, int x_parent, int y_parent, * inline parent as this box (which must mean it was the next * sibling of this inline in the HTML tree) */ for (struct box *c = box->next; - c && c->inline_parent != box->inline_parent; + c && c != box->end_inline_children; c = c->next) { int x = (x_parent + c->x) * scale; int y = (y_parent + c->y - box->padding[TOP]) * scale; @@ -502,8 +502,7 @@ bool html_redraw_borders(struct box *box, int x_parent, int y_parent, style, box->border[BOTTOM] * scale); if (box->border[RIGHT] && (!c->next || - c->next->inline_parent == - box->inline_parent)) + c->next == box->end_inline_children)) html_redraw_border_plot(RIGHT, p, box->style->border[RIGHT].color, box->style->border[RIGHT].style, @@ -1038,7 +1037,7 @@ bool html_redraw_text_decoration_inline(struct box *box, int x, int y, * parent as this box (which must mean it was the next sibling of this * inline in the HTML tree) */ for (struct box *c = box->next; - c && c->inline_parent != box->inline_parent; + c && c != box->end_inline_children; c = c->next) { if (!plot.line((x + c->x) * scale, (y + c->y + c->height * ratio) * scale, |