summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-20 14:22:28 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-20 14:22:28 +0100
commitedef40bbc432c092b1e5f4f6f5d408180ba188b3 (patch)
tree7d877e0ddbe6261b640b66754c42e985d676fdcc /content
parent971058cd67f738e4d64d1bbce234fa9340cb2668 (diff)
downloadnetsurf-edef40bbc432c092b1e5f4f6f5d408180ba188b3.tar.gz
netsurf-edef40bbc432c092b1e5f4f6f5d408180ba188b3.tar.bz2
Don't pass struct box to content open.
Diffstat (limited to 'content')
-rw-r--r--content/content.c6
-rw-r--r--content/content.h4
-rw-r--r--content/content_protected.h4
3 files changed, 4 insertions, 10 deletions
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,