summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/content/content.c b/content/content.c
index 040679d7e..e314e2314 100644
--- a/content/content.c
+++ b/content/content.c
@@ -901,15 +901,19 @@ bool content_redraw(hlcache_handle *h, int x, int y,
{
struct content *c = hlcache_handle_get_content(h);
assert(c != 0);
-// LOG(("%p %s", c, c->url));
- if (c->locked)
+
+ if (c->locked) {
/* not safe to attempt redraw */
return true;
- if (handler_map[c->type].redraw)
- return handler_map[c->type].redraw(c, x, y, width, height,
- clip_x0, clip_y0, clip_x1, clip_y1, scale,
- background_colour);
- return true;
+ }
+
+ if (handler_map[c->type].redraw == NULL) {
+ return true;
+ }
+
+ return handler_map[c->type].redraw(c, x, y, width, height,
+ clip_x0, clip_y0, clip_x1, clip_y1, scale,
+ background_colour);
}