Fix abort of page render on failed content_redraw of background image.

This commit is contained in:
Michael Drake 2013-04-23 18:34:46 +01:00
parent 5e774272cd
commit d399f565ed

View File

@ -1482,9 +1482,9 @@ static bool html_redraw_background(int x, int y, struct box *box, float scale,
bg_data.repeat_x = repeat_x; bg_data.repeat_x = repeat_x;
bg_data.repeat_y = repeat_y; bg_data.repeat_y = repeat_y;
if (!content_redraw(background->background, /* We just continue if redraw fails */
&bg_data, &r, ctx)) content_redraw(background->background,
return false; &bg_data, &r, ctx);
} }
} }
@ -1634,8 +1634,8 @@ static bool html_redraw_inline_background(int x, int y, struct box *box,
bg_data.repeat_x = repeat_x; bg_data.repeat_x = repeat_x;
bg_data.repeat_y = repeat_y; bg_data.repeat_y = repeat_y;
if (!content_redraw(box->background, &bg_data, &r, ctx)) /* We just continue if redraw fails */
return false; content_redraw(box->background, &bg_data, &r, ctx);
} }
} }