From 5a4c8916efe2449f2cf43bef2f7746dd53469046 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 24 Jun 2011 09:30:33 +0000 Subject: If iframes are reformatted due to containing document reflow, don't need to redraw them since they will be redrawn when the containing document is redrawn. Make iframe handling more robust. svn path=/trunk/netsurf/; revision=12497 --- content/content.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index e4fbcc86d..0517240dc 100644 --- a/content/content.c +++ b/content/content.c @@ -329,12 +329,15 @@ void content_set_done(struct content *c) * Calls the reformat function for the content. */ -void content_reformat(hlcache_handle *h, int width, int height) +void content_reformat(hlcache_handle *h, bool background, + int width, int height) { - content__reformat(hlcache_handle_get_content(h), width, height); + content__reformat(hlcache_handle_get_content(h), background, + width, height); } -void content__reformat(struct content *c, int width, int height) +void content__reformat(struct content *c, bool background, + int width, int height) { union content_msg_data data; assert(c != 0); @@ -346,6 +349,7 @@ void content__reformat(struct content *c, int width, int height) c->available_width = width; if (c->handler->reformat != NULL) { c->handler->reformat(c, width, height); + data.background = background; content_broadcast(c, CONTENT_MSG_REFORMAT, data); } c->locked = false; -- cgit v1.2.3