diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-04-30 22:16:41 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-04-30 22:16:41 +0100 |
commit | 479d0cb29a74eddc95e3e2292d9d49e8dafdf46f (patch) | |
tree | 76f81e7bafc5d60e5dcb3a136b0bfa775e6fbc96 /content/handlers/html/box_special.c | |
parent | 6b6bbad2b7765378b5135a26b3d410d6b0079966 (diff) | |
download | netsurf-479d0cb29a74eddc95e3e2292d9d49e8dafdf46f.tar.gz netsurf-479d0cb29a74eddc95e3e2292d9d49e8dafdf46f.tar.bz2 |
remove unused available width and height parameters from html_fecth_object()
Diffstat (limited to 'content/handlers/html/box_special.c')
-rw-r--r-- | content/handlers/html/box_special.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/content/handlers/html/box_special.c b/content/handlers/html/box_special.c index 38031ceb1..9f4a51201 100644 --- a/content/handlers/html/box_special.c +++ b/content/handlers/html/box_special.c @@ -956,8 +956,7 @@ box_embed(dom_node *n, /* start fetch */ box->flags |= IS_REPLACED; - return html_fetch_object(content, params->data, box, CONTENT_ANY, - content->base.available_width, 1000, false); + return html_fetch_object(content, params->data, box, CONTENT_ANY, false); } @@ -1189,8 +1188,7 @@ box_image(dom_node *n, /* start fetch */ box->flags |= IS_REPLACED; - ok = html_fetch_object(content, url, box, image_types, - content->base.available_width, 1000, false); + ok = html_fetch_object(content, url, box, image_types, false); nsurl_unref(url); wtype = css_computed_width(box->style, &value, &wunit); @@ -1332,11 +1330,11 @@ box_input(dom_node *n, */ if (nsurl_compare(url, content->base_url, NSURL_COMPLETE) == false) { - if (!html_fetch_object(content, url, - box, image_types, - content->base. - available_width, - 1000, false)) { + if (!html_fetch_object(content, + url, + box, + image_types, + false)) { nsurl_unref(url); goto no_memory; } @@ -1613,9 +1611,10 @@ box_object(dom_node *n, /* start fetch (MIME type is ok or not specified) */ box->flags |= IS_REPLACED; if (!html_fetch_object(content, - params->data ? params->data : params->classid, - box, CONTENT_ANY, content->base.available_width, 1000, - false)) + params->data ? params->data : params->classid, + box, + CONTENT_ANY, + false)) return false; *convert_children = false; |