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 --- desktop/frames.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'desktop/frames.c') diff --git a/desktop/frames.c b/desktop/frames.c index 39d841754..055b4a4aa 100644 --- a/desktop/frames.c +++ b/desktop/frames.c @@ -58,6 +58,7 @@ void browser_window_create_iframes(struct browser_window *bw, struct content_html_iframe *iframe) { struct browser_window *window; struct content_html_iframe *cur; + struct rect rect; int iframes = 0; int index; @@ -94,6 +95,13 @@ void browser_window_create_iframes(struct browser_window *bw, window->box = cur->box; window->parent = bw; window->box->iframe = window; + + /* iframe dimensions */ + box_bounds(window->box, &rect); + + browser_window_set_position(window, rect.x0, rect.y0); + browser_window_set_dimensions(window, rect.x1 - rect.x0, + rect.y1 - rect.y0); } /* calculate dimensions */ -- cgit v1.2.3