summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-10-11 13:55:43 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-10-11 13:55:43 +0000
commite826c7348512783f461a8cbeae074a7c9a457fc3 (patch)
tree365d89c4f6e2bd8b87b13004c4648dad533d0f33
parent7569235a267fe5d25508a8c13c921dca541d03ef (diff)
downloadnetsurf-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.c8
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;
}