diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-24 09:30:33 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-24 09:30:33 +0000 |
commit | 5a4c8916efe2449f2cf43bef2f7746dd53469046 (patch) | |
tree | f8f019f04d6137557f61c30fe8c7b5584f33b51c /riscos | |
parent | 93941435b800b3514660f19f6bac9b44506e3856 (diff) | |
download | netsurf-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 'riscos')
-rw-r--r-- | riscos/print.c | 6 | ||||
-rw-r--r-- | riscos/window.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/riscos/print.c b/riscos/print.c index c18269754..ef2a507af 100644 --- a/riscos/print.c +++ b/riscos/print.c @@ -588,7 +588,7 @@ bool print_document(struct gui_window *g, const char *filename) saved_width = content_get_width(h); saved_height = content_get_height(h); if (content_get_type(h) == CONTENT_HTML) - content_reformat(h, width, height); + content_reformat(h, false, width, height); /* open printer file */ error = xosfind_openoutw(osfind_NO_PATH | osfind_ERROR_IF_DIR | @@ -758,7 +758,7 @@ bool print_document(struct gui_window *g, const char *filename) /* restore document layout and redraw browser window */ if (content_get_type(h) == CONTENT_HTML) - content_reformat(h, saved_width, saved_height); + content_reformat(h, false, saved_width, saved_height); gui_window_redraw_window(g); @@ -778,7 +778,7 @@ error: /* restore document layout */ if (content_get_type(h) == CONTENT_HTML) - content_reformat(h, saved_width, saved_height); + content_reformat(h, false, saved_width, saved_height); return false; } diff --git a/riscos/window.c b/riscos/window.c index 4fd5be9fa..389cfce1a 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -4426,7 +4426,7 @@ void ro_gui_window_process_reformats(void) if (!g->bw->reformat_pending) continue; g->bw->reformat_pending = false; - browser_window_reformat(g->bw, + browser_window_reformat(g->bw, false, g->old_width / 2, g->old_height / 2); } |