diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/content.c | 9 | ||||
-rw-r--r-- | content/content.h | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/content/content.c b/content/content.c index df8c6dd78..417f05561 100644 --- a/content/content.c +++ b/content/content.c @@ -57,7 +57,8 @@ struct handler_entry { void (*reformat)(struct content *c, unsigned int width, unsigned int height); void (*destroy)(struct content *c); void (*redraw)(struct content *c, long x, long y, - unsigned long width, unsigned long height); + unsigned long width, unsigned long height, + long clip_x0, long clip_y0, long clip_x1, long clip_y1); void (*add_instance)(struct content *c, struct browser_window *bw, struct content *page, struct box *box, struct object_params *params, void **state); @@ -288,11 +289,13 @@ void content_destroy(struct content *c) */ void content_redraw(struct content *c, long x, long y, - unsigned long width, unsigned long height) + unsigned long width, unsigned long height, + long clip_x0, long clip_y0, long clip_x1, long clip_y1) { assert(c != 0); if (handler_map[c->type].redraw != 0) - handler_map[c->type].redraw(c, x, y, width, height); + handler_map[c->type].redraw(c, x, y, width, height, + clip_x0, clip_y0, clip_x1, clip_y1); } diff --git a/content/content.h b/content/content.h index a73fff1ef..c8f5cb099 100644 --- a/content/content.h +++ b/content/content.h @@ -138,7 +138,8 @@ void content_revive(struct content *c, unsigned long width, unsigned long height void content_reformat(struct content *c, unsigned long width, unsigned long height); void content_destroy(struct content *c); void content_redraw(struct content *c, long x, long y, - unsigned long width, unsigned long height); + unsigned long width, unsigned long height, + long clip_x0, long clip_y0, long clip_x1, long clip_y1); void content_add_user(struct content *c, void (*callback)(content_msg msg, struct content *c, void *p1, void *p2, const char *error), |