Author: tlsa
Date: Mon Jun 27 16:37:37 2011
New Revision: 12518
URL:
http://source.netsurf-browser.org?rev=12518&view=rev
Log:
Enable content redraw request without hlcache_handle.
Modified:
trunk/netsurf/content/content.c
trunk/netsurf/content/content_protected.h
Modified: trunk/netsurf/content/content.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/content/content.c?rev=125...
==============================================================================
--- trunk/netsurf/content/content.c (original)
+++ trunk/netsurf/content/content.c Mon Jun 27 16:37:37 2011
@@ -435,7 +435,7 @@
/**
* 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_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)
Modified: trunk/netsurf/content/content_protected.h
URL:
http://source.netsurf-browser.org/trunk/netsurf/content/content_protected...
==============================================================================
--- trunk/netsurf/content/content_protected.h (original)
+++ trunk/netsurf/content/content_protected.h Mon Jun 27 16:37:37 2011
@@ -154,6 +154,8 @@
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);