diff options
author | James Bursa <james@netsurf-browser.org> | 2007-01-24 22:53:09 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2007-01-24 22:53:09 +0000 |
commit | b6630787c5de26ce43dd0fc080ceb3cde193ccfe (patch) | |
tree | 9b819ec5454bfc705c04c2d68c72fec86885450e /render | |
parent | f629a4f00fb0ff766cba2194d9a408ddee6699cf (diff) | |
download | netsurf-b6630787c5de26ce43dd0fc080ceb3cde193ccfe.tar.gz netsurf-b6630787c5de26ce43dd0fc080ceb3cde193ccfe.tar.bz2 |
Default frame margin 0 instead of -1. Fix marginheight parsing.
svn path=/trunk/netsurf/; revision=3147
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 37a649700..4244f1337 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1706,8 +1706,8 @@ bool box_create_frameset(struct content_html_frames *f, xmlNode *n, frame->rows = 0; frame->width = col_width[col]; frame->height = row_height[row]; - frame->margin_width = -1; - frame->margin_height = -1; + frame->margin_width = 0; + frame->margin_height = 0; frame->name = NULL; frame->url = NULL; frame->no_resize = false; @@ -1752,7 +1752,7 @@ bool box_create_frameset(struct content_html_frames *f, xmlNode *n, box_extract_link(s, content->data.html.base_url, &url); xmlFree(s); } - + /* copy url */ if (url) { /* no self-references */ @@ -1761,7 +1761,7 @@ bool box_create_frameset(struct content_html_frames *f, xmlNode *n, free(url); url = NULL; } - + /* fill in specified values */ if ((s = (char *) xmlGetProp(c, (const xmlChar *) "name"))) { @@ -1791,7 +1791,7 @@ bool box_create_frameset(struct content_html_frames *f, xmlNode *n, } if ((s = (char *) xmlGetProp(c, (const xmlChar *) "marginheight"))) { - frame->margin_width = atoi(s); + frame->margin_height = atoi(s); xmlFree(s); } if ((s = (char *) xmlGetProp(c, (const xmlChar *) "bordercolor"))) { @@ -1847,8 +1847,8 @@ bool box_iframe(BOX_SPECIAL_PARAMS) return false; } iframe->box = box; - iframe->margin_width = -1; - iframe->margin_height = -1; + iframe->margin_width = 0; + iframe->margin_height = 0; iframe->name = NULL; iframe->url = talloc_strdup(content, url); iframe->scrolling = SCROLLING_AUTO; @@ -1891,7 +1891,7 @@ bool box_iframe(BOX_SPECIAL_PARAMS) } if ((s = (char *) xmlGetProp(n, (const xmlChar *) "marginheight"))) { - iframe->margin_width = atoi(s); + iframe->margin_height = atoi(s); xmlFree(s); } @@ -1960,7 +1960,7 @@ bool box_form(BOX_SPECIAL_PARAMS) /* acceptable encoding(s) for form data */ charset = (char *) xmlGetProp(n, (const xmlChar *) "accept-charset"); - + /* target for form data */ target = (char *) xmlGetProp(n, (const xmlChar *) "target"); |