summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-07-07 17:50:04 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-07-07 17:50:04 +0000
commitbc91b72c56fdfe2d74e1b0fbfdeb6d6d84ad103e (patch)
treee6ab0967e23094254bd93ad94da7d55434eb4d73 /render/html.c
parente2681caf9cdf056942792a06b74c729a05d7b5b0 (diff)
downloadnetsurf-bc91b72c56fdfe2d74e1b0fbfdeb6d6d84ad103e.tar.gz
netsurf-bc91b72c56fdfe2d74e1b0fbfdeb6d6d84ad103e.tar.bz2
Clean up text input code. Now desktop/textinput.{c|h} is concerend with browser windows only. HTML content specific stuff moved to render/textinput.{c|h} and disassociated from browser windows.
svn path=/trunk/netsurf/; revision=12587
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.
*/