summaryrefslogtreecommitdiff
path: root/content/handlers/html/box_construct.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-04-30 22:16:41 +0100
committerVincent Sanders <vince@kyllikki.org>2020-04-30 22:16:41 +0100
commit479d0cb29a74eddc95e3e2292d9d49e8dafdf46f (patch)
tree76f81e7bafc5d60e5dcb3a136b0bfa775e6fbc96 /content/handlers/html/box_construct.c
parent6b6bbad2b7765378b5135a26b3d410d6b0079966 (diff)
downloadnetsurf-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_construct.c')
-rw-r--r--content/handlers/html/box_construct.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/content/handlers/html/box_construct.c b/content/handlers/html/box_construct.c
index 1637c0fb1..fba97641d 100644
--- a/content/handlers/html/box_construct.c
+++ b/content/handlers/html/box_construct.c
@@ -470,9 +470,11 @@ box_construct_marker(struct box *box,
if (error != NSERROR_OK)
return false;
- if (html_fetch_object(ctx->content, url, marker, image_types,
- ctx->content->base.available_width, 1000, false) ==
- false) {
+ if (html_fetch_object(ctx->content,
+ url,
+ marker,
+ image_types,
+ false) == false) {
nsurl_unref(url);
return false;
}
@@ -705,10 +707,11 @@ box_construct_element(struct box_construct_ctx *ctx, bool *convert_children)
error = nsurl_create(lwc_string_data(bgimage_uri), &url);
if (error == NSERROR_OK) {
/* Fetch image if we got a valid URL */
- if (html_fetch_object(ctx->content, url, box,
- image_types,
- ctx->content->base.available_width,
- 1000, true) == false) {
+ if (html_fetch_object(ctx->content,
+ url,
+ box,
+ image_types,
+ true) == false) {
nsurl_unref(url);
return false;
}