summaryrefslogtreecommitdiff
path: root/desktop/frames.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 /desktop/frames.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 'desktop/frames.c')
-rw-r--r--desktop/frames.c8
1 files changed, 8 insertions, 0 deletions
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 */