summaryrefslogtreecommitdiff
path: root/render/html_redraw.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 16:37:51 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 16:37:51 +0000
commitee986e1d0acfc586a81aa593c72f9278077f3299 (patch)
tree9da1d53a770d8b828e73ab0db176fbff36b1dd06 /render/html_redraw.c
parentf41d666fe17ef2bf4a1a4161283049d2817a4087 (diff)
downloadnetsurf-ee986e1d0acfc586a81aa593c72f9278077f3299.tar.gz
netsurf-ee986e1d0acfc586a81aa593c72f9278077f3299.tar.bz2
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
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r--render/html_redraw.c11
1 files changed, 0 insertions, 11 deletions
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) {