From 479d0cb29a74eddc95e3e2292d9d49e8dafdf46f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 30 Apr 2020 22:16:41 +0100 Subject: remove unused available width and height parameters from html_fecth_object() --- content/handlers/html/box_construct.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'content/handlers/html/box_construct.c') 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; } -- cgit v1.2.3