diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2003-11-05 18:41:06 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2003-11-05 18:41:06 +0000 |
commit | e556a7b34036ed2a6de529ab8614a7cc8d32f16d (patch) | |
tree | 9c4b2e137c6daaa63c1a0820de015a8505055da9 /riscos/htmlredraw.c | |
parent | b1a8dce16cd3b0e1234b6e129d6baf7102994833 (diff) | |
download | netsurf-e556a7b34036ed2a6de529ab8614a7cc8d32f16d.tar.gz netsurf-e556a7b34036ed2a6de529ab8614a7cc8d32f16d.tar.bz2 |
[project @ 2003-11-05 18:41:06 by jmb]
Text-decoration now spans child text elements
svn path=/import/netsurf/; revision=404
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r-- | riscos/htmlredraw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c index 117120f7c..b76a06105 100644 --- a/riscos/htmlredraw.c +++ b/riscos/htmlredraw.c @@ -288,15 +288,15 @@ void html_redraw_box(struct content *content, struct box * box, colourtrans_set_gcol(colour << 8, colourtrans_USE_ECFS, os_ACTION_OVERWRITE, 0); - if (box->style->text_decoration & CSS_TEXT_DECORATION_UNDERLINE) { + if (box->style->text_decoration & CSS_TEXT_DECORATION_UNDERLINE || (box->parent->parent->style->text_decoration & CSS_TEXT_DECORATION_UNDERLINE && box->parent->parent->type == BOX_BLOCK)) { os_plot(os_MOVE_TO, x, y - (int) (box->height * 1.8)); os_plot(os_PLOT_SOLID_EX_END | os_PLOT_BY, box->width * 2, 0); } - if (box->style->text_decoration & CSS_TEXT_DECORATION_OVERLINE) { + if (box->style->text_decoration & CSS_TEXT_DECORATION_OVERLINE || (box->parent->parent->style->text_decoration & CSS_TEXT_DECORATION_OVERLINE && box->parent->parent->type == BOX_BLOCK)) { os_plot(os_MOVE_TO, x, y - (int) (box->height * 0.2)); os_plot(os_PLOT_SOLID_EX_END | os_PLOT_BY, box->width * 2, 0); } - if (box->style->text_decoration & CSS_TEXT_DECORATION_LINE_THROUGH) { + if (box->style->text_decoration & CSS_TEXT_DECORATION_LINE_THROUGH || (box->parent->parent->style->text_decoration & CSS_TEXT_DECORATION_LINE_THROUGH && box->parent->parent->type == BOX_BLOCK)) { os_plot(os_MOVE_TO, x, y - (int) (box->height * 1.0)); os_plot(os_PLOT_SOLID_EX_END | os_PLOT_BY, box->width * 2, 0); } |