From 19daa23f947b0bef7f86877be68277d4696e40a9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 17 Sep 2011 14:35:54 +0000 Subject: Only lock content around its reformat call. This means it is not now locked when reformat message is broadcast. Prevents the browser window callback asking the core to redraw a content before it gets unlocked. svn path=/trunk/netsurf/; revision=12802 --- content/content.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'content') diff --git a/content/content.c b/content/content.c index f2d06b639..7aea920a5 100644 --- a/content/content.c +++ b/content/content.c @@ -354,14 +354,16 @@ void content__reformat(struct content *c, bool background, c->status == CONTENT_STATUS_DONE); assert(c->locked == false); LOG(("%p %s", c, llcache_handle_get_url(c->llcache))); - c->locked = true; c->available_width = width; if (c->handler->reformat != NULL) { + + c->locked = true; c->handler->reformat(c, width, height); + c->locked = false; + data.background = background; content_broadcast(c, CONTENT_MSG_REFORMAT, data); } - c->locked = false; } -- cgit v1.2.3