summaryrefslogtreecommitdiff
path: root/riscos/print.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 /riscos/print.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 'riscos/print.c')
-rw-r--r--riscos/print.c6
1 files changed, 3 insertions, 3 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;
}