diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-27 21:37:37 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-27 21:37:37 +0000 |
commit | 6f215b1f029e144d98bf39f19e5d142d52621ac7 (patch) | |
tree | 0f4ef98ed87ccaa85fd04d60644c75dafa04a678 /content | |
parent | a06bde0232baf7f3253c9c800136dd1f19156682 (diff) | |
download | netsurf-6f215b1f029e144d98bf39f19e5d142d52621ac7.tar.gz netsurf-6f215b1f029e144d98bf39f19e5d142d52621ac7.tar.bz2 |
Enable content redraw request without hlcache_handle.
svn path=/trunk/netsurf/; revision=12518
Diffstat (limited to 'content')
-rw-r--r-- | content/content.c | 20 | ||||
-rw-r--r-- | content/content_protected.h | 2 |
2 files changed, 20 insertions, 2 deletions
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); |