From ee986e1d0acfc586a81aa593c72f9278077f3299 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 17 Feb 2009 16:37:51 +0000 Subject: Divorce PDF export and printing. At some point, the RISC OS printing code should be ported to the core page-based output engine. svn path=/trunk/netsurf/; revision=6544 --- render/html_redraw.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'render') diff --git a/render/html_redraw.c b/render/html_redraw.c index afba91b8c..9cf0e58c3 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -180,10 +180,8 @@ bool html_redraw_box(struct box *box, int x_scrolled, y_scrolled; struct box *bg_box = NULL; -#ifdef WITH_PDF_EXPORT if (html_redraw_printing && box->printed) return true; -#endif /* avoid trivial FP maths */ if (scale == 1.0) { @@ -265,7 +263,6 @@ bool html_redraw_box(struct box *box, if (clip_y1 < y0 || y1 < clip_y0 || clip_x1 < x0 || x1 < clip_x0) return true; -#ifdef WITH_PDF_EXPORT /*if the rectangle is under the page bottom but it can fit in a page, don't print it now*/ if (html_redraw_printing) { @@ -283,7 +280,6 @@ bool html_redraw_box(struct box *box, } else box->printed = true;/*it won't be printed anymore*/ } -#endif /* if visibility is hidden render children only */ if (box->style && box->style->visibility == CSS_VISIBILITY_HIDDEN) { @@ -1437,11 +1433,8 @@ bool html_redraw_background(int x, int y, struct box *box, float scale, int width, height; struct box *parent; -#ifdef WITH_PDF_EXPORT if (html_redraw_printing && option_remove_backgrounds) return true; -#endif - plot_content = (background->background != NULL); @@ -1656,10 +1649,8 @@ bool html_redraw_inline_background(int x, int y, struct box *box, float scale, plot_content = (box->background != NULL); -#ifdef WITH_PDF_EXPORT if (html_redraw_printing && option_remove_backgrounds) return true; -#endif if (plot_content) { /* handle background-repeat */ @@ -1806,11 +1797,9 @@ bool html_redraw_text_decoration(struct box *box, unsigned int i; /* antialias colour for under/overline */ -#ifdef WITH_PDF_EXPORT if (html_redraw_printing) colour = box->style->color; else -#endif colour = html_redraw_aa(background_colour, box->style->color); if (box->type == BOX_INLINE) { -- cgit v1.2.3