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
1 changed files with 5 additions and 5 deletions

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_y = repeat_y;
if (!content_redraw(background->background,
&bg_data, &r, ctx))
return false;
/* We just continue if redraw fails */
content_redraw(background->background,
&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_y = repeat_y;
if (!content_redraw(box->background, &bg_data, &r, ctx))
return false;
/* We just continue if redraw fails */
content_redraw(box->background, &bg_data, &r, ctx);
}
}