mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #1308 - Create nsDisplayTableBackgroundColor to avoid display
list collisions when processing the background color of a table. This is effectively #146 Part 3c to go along with the other 2 there. This resolves #1308.
This commit is contained in:
parent
6fe976071e
commit
75d291480c
2 changed files with 37 additions and 3 deletions
|
|
@ -2703,9 +2703,22 @@ nsDisplayBackgroundImage::AppendBackgroundItemsToTop(nsDisplayListBuilder* aBuil
|
|||
bg->BottomLayer(), bgRect,
|
||||
useWillPaintBorderOptimization);
|
||||
}
|
||||
bgItemList.AppendNewToTop(
|
||||
new (aBuilder) nsDisplayBackgroundColor(aBuilder, aFrame, bgRect, bg,
|
||||
drawBackgroundColor ? color : NS_RGBA(0, 0, 0, 0)));
|
||||
if (aSecondaryReferenceFrame) {
|
||||
bgItemList.AppendNewToTop(
|
||||
new (aBuilder) nsDisplayTableBackgroundColor(aBuilder,
|
||||
aSecondaryReferenceFrame,
|
||||
bgRect,
|
||||
bg,
|
||||
drawBackgroundColor ? color : NS_RGBA(0, 0, 0, 0),
|
||||
aFrame));
|
||||
} else {
|
||||
bgItemList.AppendNewToTop(
|
||||
new (aBuilder) nsDisplayBackgroundColor(aBuilder,
|
||||
aFrame,
|
||||
bgRect,
|
||||
bg,
|
||||
drawBackgroundColor ? color : NS_RGBA(0, 0, 0, 0)));
|
||||
}
|
||||
}
|
||||
|
||||
if (isThemed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue