Bug 1276734 - Use nsDisplayBackgroundImage for table cells without collapsed borders. r=mattwoodrow

MozReview-Commit-ID: JrGVd2z7FFk

--HG--
extra : rebase_source : b52f4651934673a22573393c4d2326191b635011
This commit is contained in:
Andrew Comminos 2016-05-27 18:41:40 -04:00
parent 100757988a
commit e11a28e748

View File

@ -508,10 +508,10 @@ nsTableCellFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
// The cell background was not painted by the nsTablePainter,
// so we need to do it. We have special background processing here
// so we need to duplicate some code from nsFrame::DisplayBorderBackgroundOutline
nsDisplayTableItem* item =
new (aBuilder) nsDisplayTableCellBackground(aBuilder, this);
aLists.BorderBackground()->AppendNewToTop(item);
item->UpdateForFrameBackground(this);
nsDisplayBackgroundImage::AppendBackgroundItemsToTop(aBuilder,
this,
GetRectRelativeToSelf(),
aLists.BorderBackground());
} else {
// The nsTablePainter will paint our background. Make sure it
// knows if we're background-attachment:fixed.