diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/html.c | 50 | ||||
-rw-r--r-- | render/html.h | 4 |
2 files changed, 4 insertions, 50 deletions
diff --git a/render/html.c b/render/html.c index 7751e652e..e3953597e 100644 --- a/render/html.c +++ b/render/html.c @@ -508,56 +508,6 @@ void html_object_callback(content_msg msg, struct content *object, } -void html_add_instance(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, - struct object_params *params, void **state) -{ - unsigned int i; - for (i = 0; i != c->data.html.object_count; i++) { - if (c->data.html.object[i].content == 0) - continue; - content_add_instance(c->data.html.object[i].content, - bw, c, - c->data.html.object[i].box, - c->data.html.object[i].box->object_params, - &c->data.html.object[i].box->object_state); - } -} - - -void html_reshape_instance(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, - struct object_params *params, void **state) -{ - unsigned int i; - for (i = 0; i != c->data.html.object_count; i++) { - if (c->data.html.object[i].content == 0) - continue; - content_reshape_instance(c->data.html.object[i].content, - bw, c, - c->data.html.object[i].box, - c->data.html.object[i].box->object_params, - &c->data.html.object[i].box->object_state); - } -} - -void html_remove_instance(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, - struct object_params *params, void **state) -{ - unsigned int i; - for (i = 0; i != c->data.html.object_count; i++) { - if (c->data.html.object[i].content == 0) - continue; - content_remove_instance(c->data.html.object[i].content, - bw, c, - c->data.html.object[i].box, - c->data.html.object[i].box->object_params, - &c->data.html.object[i].box->object_state); - } -} - - void html_revive(struct content *c, unsigned int width, unsigned int height) { unsigned int i; diff --git a/render/html.h b/render/html.h index b4d72f417..db41f7f11 100644 --- a/render/html.h +++ b/render/html.h @@ -57,6 +57,8 @@ void html_revive(struct content *c, unsigned int width, unsigned int height); void html_reformat(struct content *c, unsigned int width, unsigned int height); void html_destroy(struct content *c); void html_fetch_object(struct content *c, char *url, struct box *box); + +/* in riscos/htmlinstance.c */ void html_add_instance(struct content *c, struct browser_window *bw, struct content *page, struct box *box, struct object_params *params, void **state); @@ -66,6 +68,8 @@ void html_reshape_instance(struct content *c, struct browser_window *bw, void html_remove_instance(struct content *c, struct browser_window *bw, struct content *page, struct box *box, struct object_params *params, void **state); + +/* in riscos/htmlredraw.c */ void html_redraw(struct content *c, long x, long y, unsigned long width, unsigned long height, long clip_x0, long clip_y0, long clip_x1, long clip_y1); |