summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-10-10 18:13:36 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-10-10 18:13:36 +0000
commit0e5d05b12544a73d4ecaa4d89d22251afef92916 (patch)
tree8748ddbf57242d14615db0cbc67f381a710414c4 /riscos
parent33efbb28067863e576750f07fae855ed3580d66c (diff)
downloadnetsurf-0e5d05b12544a73d4ecaa4d89d22251afef92916.tar.gz
netsurf-0e5d05b12544a73d4ecaa4d89d22251afef92916.tar.bz2
[project @ 2003-10-10 18:13:36 by jmb]
CSS visibility support (not collapse) svn path=/import/netsurf/; revision=361
Diffstat (limited to 'riscos')
-rw-r--r--riscos/htmlredraw.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index d41702692..cb1ef3125 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -11,6 +11,7 @@
#include <string.h>
#include "oslib/colourtrans.h"
#include "oslib/font.h"
+#include "netsurf/css/css.h"
#include "netsurf/content/content.h"
#include "netsurf/render/html.h"
#include "netsurf/riscos/gui.h"
@@ -90,6 +91,14 @@ void html_redraw_box(struct content *content, struct box * box,
x1 = x0 + width - 1;
y0 = y1 - height + 1;
+ /* 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)) {
+ return;
+ }
+
/* return if the box is completely outside the clip rectangle, except
* for table rows which may contain cells spanning into other rows */
if (box->type != BOX_TABLE_ROW &&
@@ -219,7 +228,7 @@ void html_redraw_box(struct content *content, struct box * box,
wimp_plot_icon(&icon);
break;
}
-
+
} else if (box->text && box->font) {
if (content->data.html.text_selection.selected == 1) {