From 6f215b1f029e144d98bf39f19e5d142d52621ac7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 27 Jun 2011 21:37:37 +0000 Subject: Enable content redraw request without hlcache_handle. svn path=/trunk/netsurf/; revision=12518 --- content/content.c | 20 ++++++++++++++++++-- content/content_protected.h | 2 ++ 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'content') diff --git a/content/content.c b/content/content.c index 0517240dc..eb259a6b1 100644 --- a/content/content.c +++ b/content/content.c @@ -435,7 +435,7 @@ void content_mouse_action(hlcache_handle *h, struct browser_window *bw, /** * Request a redraw of an area of a content * - * \param h Content handle + * \param h high-level cache handle * \param x x co-ord of left edge * \param y y co-ord of top edge * \param width Width of rectangle @@ -444,7 +444,23 @@ void content_mouse_action(hlcache_handle *h, struct browser_window *bw, void content_request_redraw(struct hlcache_handle *h, int x, int y, int width, int height) { - struct content *c = hlcache_handle_get_content(h); + content__request_redraw(hlcache_handle_get_content(h), + x, y, width, height); +} + + +/** + * Request a redraw of an area of a content + * + * \param c Content + * \param x x co-ord of left edge + * \param y y co-ord of top edge + * \param width Width of rectangle + * \param height Height of rectangle + */ +void content__request_redraw(struct content *c, + int x, int y, int width, int height) +{ union content_msg_data data; if (c == NULL) diff --git a/content/content_protected.h b/content/content_protected.h index 5f8081017..180a4a0d8 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -154,6 +154,8 @@ void content_add_error(struct content *c, const char *token, void content__reformat(struct content *c, bool background, int width, int height); +void content__request_redraw(struct content *c, + int x, int y, int width, int height); bool content__set_title(struct content *c, const char *title); -- cgit v1.2.3