diff options
author | James Bursa <james@netsurf-browser.org> | 2005-07-02 20:08:24 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-07-02 20:08:24 +0000 |
commit | 8a7ebeb2cc33692c2927bac34350ed8de9adaf51 (patch) | |
tree | 1c1b633021dcdcd85fec9b6f0ae822b44fc99fb3 /render/box_construct.c | |
parent | 5abb753c85c747eb4590455366b9d3f44fb0a698 (diff) | |
download | netsurf-8a7ebeb2cc33692c2927bac34350ed8de9adaf51.tar.gz netsurf-8a7ebeb2cc33692c2927bac34350ed8de9adaf51.tar.bz2 |
[project @ 2005-07-02 20:08:24 by bursa]
Fix hidden form inputs being rendered.
svn path=/import/netsurf/; revision=1780
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 8bec077f4..7197beebe 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -319,6 +319,11 @@ bool box_construct_element(xmlNode *n, struct content *content, return false; href = box->href; } + if (style->display == CSS_DISPLAY_NONE) { + talloc_free(style); + box_free_box(box); + return true; + } if (!*inline_container && (box->type == BOX_INLINE || @@ -1744,6 +1749,8 @@ bool box_input(BOX_SPECIAL_PARAMS) } else if (type && strcasecmp(type, "hidden") == 0) { /* no box for hidden inputs */ + box->style->display = CSS_DISPLAY_NONE; + gadget = form_new_control(GADGET_HIDDEN); if (!gadget) goto no_memory; |