summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-27 21:37:37 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-27 21:37:37 +0000
commit6f215b1f029e144d98bf39f19e5d142d52621ac7 (patch)
tree0f4ef98ed87ccaa85fd04d60644c75dafa04a678 /content/content.c
parenta06bde0232baf7f3253c9c800136dd1f19156682 (diff)
downloadnetsurf-6f215b1f029e144d98bf39f19e5d142d52621ac7.tar.gz
netsurf-6f215b1f029e144d98bf39f19e5d142d52621ac7.tar.bz2
Enable content redraw request without hlcache_handle.
svn path=/trunk/netsurf/; revision=12518
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c20
1 files changed, 18 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)