summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-24 09:30:33 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-24 09:30:33 +0000
commit5a4c8916efe2449f2cf43bef2f7746dd53469046 (patch)
treef8f019f04d6137557f61c30fe8c7b5584f33b51c /content/content.c
parent93941435b800b3514660f19f6bac9b44506e3856 (diff)
downloadnetsurf-5a4c8916efe2449f2cf43bef2f7746dd53469046.tar.gz
netsurf-5a4c8916efe2449f2cf43bef2f7746dd53469046.tar.bz2
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
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c10
1 files changed, 7 insertions, 3 deletions
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;