summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-02-14 19:17:08 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-02-14 19:17:08 +0000
commitf42ed976e5e4c59b25250ad106527ac7b4447f68 (patch)
tree0886af935d7a79210ee43ea9f5b11c8387f89036 /render
parentc05333fa62c6dfdd76f20d8a4056bd66f6e9cddd (diff)
downloadnetsurf-f42ed976e5e4c59b25250ad106527ac7b4447f68.tar.gz
netsurf-f42ed976e5e4c59b25250ad106527ac7b4447f68.tar.bz2
Constify
svn path=/trunk/netsurf/; revision=11680
Diffstat (limited to 'render')
-rw-r--r--render/html.h4
-rw-r--r--render/html_redraw.c4
-rw-r--r--render/textplain.c2
-rw-r--r--render/textplain.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/render/html.h b/render/html.h
index 324e795f0..ee2f041bf 100644
--- a/render/html.h
+++ b/render/html.h
@@ -209,7 +209,7 @@ void html_redraw_a_box(struct hlcache_handle *h, struct box *box);
/* in render/html_redraw.c */
bool html_redraw(struct content *c, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour);
/* in render/html_interaction.c */
@@ -228,7 +228,7 @@ bool text_redraw(const char *utf8_text, size_t utf8_len,
size_t offset, bool space,
const plot_font_style_t *fstyle,
int x, int y,
- struct rect *clip,
+ const struct rect *clip,
int height,
float scale,
bool excluded);
diff --git a/render/html_redraw.c b/render/html_redraw.c
index 019b99ed7..8468d3007 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -110,7 +110,7 @@ bool html_redraw_debug = false;
*/
bool html_redraw(struct content *c, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour)
{
struct box *box;
@@ -841,7 +841,7 @@ bool html_redraw_text_box(struct box *box, int x, int y,
bool text_redraw(const char *utf8_text, size_t utf8_len,
size_t offset, bool space, const plot_font_style_t *fstyle,
- int x, int y, struct rect *clip,
+ int x, int y, const struct rect *clip,
int height,
float scale,
bool excluded)
diff --git a/render/textplain.c b/render/textplain.c
index ada008f35..2a31c6272 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -546,7 +546,7 @@ void textplain_mouse_action(struct content *c, struct browser_window *bw,
*/
bool textplain_redraw(struct content *c, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour)
{
struct browser_window *bw = current_redraw_browser;
diff --git a/render/textplain.h b/render/textplain.h
index 284585e35..c338220d1 100644
--- a/render/textplain.h
+++ b/render/textplain.h
@@ -59,7 +59,7 @@ void textplain_mouse_action(struct content *c, struct browser_window *bw,
void textplain_reformat(struct content *c, int width, int height);
void textplain_destroy(struct content *c);
bool textplain_redraw(struct content *c, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour);
bool textplain_clone(const struct content *old, struct content *new_content);