mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
100757988a
commit
e11a28e748
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user