summaryrefslogtreecommitdiff
path: root/render/html_redraw.c
diff options
context:
space:
mode:
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) {