summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c
index d77cfd981..9e2b4c338 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1768,6 +1768,25 @@ void html_redraw_a_box(hlcache_handle *h, struct box *box)
/**
+ * Redraw a box.
+ *
+ * \param h content containing the box, of type CONTENT_HTML
+ * \param box box to redraw
+ */
+
+void html__redraw_a_box(struct content *c, struct box *box)
+{
+ int x, y;
+
+ box_coords(box, &x, &y);
+
+ content__request_redraw(c, x, y,
+ box->padding[LEFT] + box->width + box->padding[RIGHT],
+ box->padding[TOP] + box->height + box->padding[BOTTOM]);
+}
+
+
+/**
* Destroy a CONTENT_HTML and free all resources it owns.
*/