From 2d6da52f38ea078b0d67eb262e2507ee83902f6d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 20 Aug 2012 14:37:58 +0100 Subject: Remove box use from maiga plugin hack. May need a new way to get dimensions? --- amiga/plugin_hack.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'amiga/plugin_hack.c') diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c index e7ce0de13..89e80e3e4 100644 --- a/amiga/plugin_hack.c +++ b/amiga/plugin_hack.c @@ -25,7 +25,6 @@ #include "content/content_protected.h" #include "content/hlcache.h" #include "desktop/plotters.h" -#include "render/box.h" #include "utils/log.h" #include "utils/messages.h" #include "utils/talloc.h" @@ -50,8 +49,7 @@ static bool amiga_plugin_hack_redraw(struct content *c, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx); static void amiga_plugin_hack_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); static void amiga_plugin_hack_close(struct content *c); static nserror amiga_plugin_hack_clone(const struct content *old, struct content **newc); static content_type amiga_plugin_hack_content_type(void); @@ -173,15 +171,15 @@ bool amiga_plugin_hack_redraw(struct content *c, * \param params object parameters, or 0 if not an object */ void amiga_plugin_hack_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) { LOG(("amiga_plugin_hack_open %s", nsurl_access(content_get_url(c)))); - if(c && box) + if(c) { - c->width = box->width; - c->height = box->height; + /* TODO: Do we need valid dimensions at this point? */ + c->width = 0; + c->height = 0; } return; -- cgit v1.2.3