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.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 0efdf443f..636da4e23 100644 --- a/content/content.h +++ b/content/content.h @@ -88,6 +88,8 @@ union content_msg_data { int object_width, object_height; } redraw; int delay; /**< Minimum delay, for CONTENT_MSG_REFRESH */ + /** Reformat should not cause a redraw, for CONTENT_MSG_REFORMAT */ + bool background; /** Low-level cache handle, for CONTENT_MSG_DOWNLOAD */ struct llcache_handle *download; }; @@ -117,7 +119,8 @@ nserror content_abort(struct content *c); /* Client functions */ bool content_can_reformat(struct hlcache_handle *h); -void content_reformat(struct hlcache_handle *h, int width, int height); +void content_reformat(struct hlcache_handle *h, bool background, + int width, int height); void content_request_redraw(struct hlcache_handle *h, int x, int y, int width, int height); void content_mouse_track(struct hlcache_handle *h, struct browser_window *bw, -- cgit v1.2.3