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. --- content/content.c | 6 ++---- content/content.h | 4 +--- content/content_protected.h | 4 +--- 3 files changed, 4 insertions(+), 10 deletions(-) (limited to 'content') diff --git a/content/content.c b/content/content.c index e78ead295..57d370848 100644 --- a/content/content.c +++ b/content/content.c @@ -670,22 +670,20 @@ void content_broadcast(struct content *c, content_msg msg, * \param bw browser window containing the content * \param page content of type CONTENT_HTML containing c, or 0 if not an * object within a page - * \param box box containing c, or 0 if not an object * \param params object parameters, or 0 if not an object * * Calls the open function for the content. */ void content_open(hlcache_handle *h, struct browser_window *bw, - struct content *page, struct box *box, - struct object_params *params) + struct content *page, struct object_params *params) { struct content *c = hlcache_handle_get_content(h); assert(c != 0); LOG(("content %p %s", c, nsurl_access(llcache_handle_get_url(c->llcache)))); if (c->handler->open != NULL) - c->handler->open(c, bw, page, box, params); + c->handler->open(c, bw, page, params); } diff --git a/content/content.h b/content/content.h index 8987e2cdf..562bcd798 100644 --- a/content/content.h +++ b/content/content.h @@ -40,7 +40,6 @@ #include "desktop/mouse.h" #include "desktop/plot_style.h" -struct box; struct browser_window; struct content; struct llcache_handle; @@ -218,8 +217,7 @@ void content_mouse_action(struct hlcache_handle *h, struct browser_window *bw, bool content_redraw(struct hlcache_handle *h, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx); void content_open(struct hlcache_handle *h, struct browser_window *bw, - struct content *page, struct box *box, - struct object_params *params); + struct content *page, struct object_params *params); void content_close(struct hlcache_handle *h); struct selection *content_get_selection(struct hlcache_handle *h); void content_get_contextual_content(struct hlcache_handle *h, diff --git a/content/content_protected.h b/content/content_protected.h index e37573493..a52a51be9 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -62,9 +62,7 @@ struct content_handler { const struct rect *clip, const struct redraw_context *ctx); void (*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 (*close)(struct content *c); struct selection * (*get_selection)(struct content *c); void (*get_contextual_content)(struct content *c, int x, int y, -- cgit v1.2.3