From edef40bbc432c092b1e5f4f6f5d408180ba188b3 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 20 Aug 2012 14:22:28 +0100 Subject: Don't pass struct box to content open. --- render/html.c | 3 --- render/textplain.c | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'render') diff --git a/render/html.c b/render/html.c index 79ca02603..0dde26b9b 100644 --- a/render/html.c +++ b/render/html.c @@ -1119,7 +1119,6 @@ html_object_callback(hlcache_handle *object, if (c->base.status != CONTENT_STATUS_LOADING && c->bw != NULL) content_open(object, c->bw, &c->base, - box, box->object_params); break; @@ -2554,7 +2553,6 @@ static void html_open(struct content *c, struct browser_window *bw, struct content *page, - struct box *box, struct object_params *params) { html_content *html = (html_content *) c; @@ -2577,7 +2575,6 @@ html_open(struct content *c, content_open(object->content, bw, c, - object->box, object->box->object_params); } } diff --git a/render/textplain.c b/render/textplain.c index 78539b47d..1877f32eb 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -113,8 +113,7 @@ static void textplain_destroy(struct content *c); static bool textplain_redraw(struct content *c, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx); static void textplain_open(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, - struct object_params *params); + struct content *page, struct object_params *params); void textplain_close(struct content *c); struct selection *textplain_get_selection(struct content *c); struct search_context *textplain_get_search(struct content *c); @@ -855,8 +854,7 @@ bool textplain_redraw(struct content *c, struct content_redraw_data *data, */ void textplain_open(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, - struct object_params *params) + struct content *page, struct object_params *params) { textplain_content *text = (textplain_content *) c; -- cgit v1.2.3