diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2003-10-11 13:55:43 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2003-10-11 13:55:43 +0000 |
commit | e826c7348512783f461a8cbeae074a7c9a457fc3 (patch) | |
tree | 365d89c4f6e2bd8b87b13004c4648dad533d0f33 | |
parent | 7569235a267fe5d25508a8c13c921dca541d03ef (diff) | |
download | netsurf-e826c7348512783f461a8cbeae074a7c9a457fc3.tar.gz netsurf-e826c7348512783f461a8cbeae074a7c9a457fc3.tar.bz2 |
[project @ 2003-10-11 13:55:43 by jmb]
Fix visibility so visible children of hidden parents work
svn path=/import/netsurf/; revision=363
-rw-r--r-- | riscos/htmlredraw.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c index cb1ef3125..f4a6c50de 100644 --- a/riscos/htmlredraw.c +++ b/riscos/htmlredraw.c @@ -93,9 +93,11 @@ void html_redraw_box(struct content *content, struct box * box, /* return if visibility is hidden or inherited visibility is hidden */ - if (box->style->visibility == CSS_VISIBILITY_HIDDEN || - (box->style->visibility == CSS_VISIBILITY_INHERIT && - box->parent->style->visibility == CSS_VISIBILITY_HIDDEN)) { + if (box->style->visibility == CSS_VISIBILITY_HIDDEN) { + for (c=box->children;c!=0;c=c->next) + html_redraw_box(content, c, x, y, current_background_color, + gadget_subtract_x, gadget_subtract_y, select_on, + x0, y0, x1, y1); return; } |