Bug 1436510 - Don't attempt partial display list building within perspective as we need to build all children to get consistent indices. r=miko

This commit is contained in:
Matt Woodrow 2018-03-01 16:53:58 +13:00
Родитель 809bf8f61f
Коммит ac734805c4
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -2828,6 +2828,16 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
}
}
// nsDisplayPerspective items use an index to keep their PerFrameKey unique.
// We need to make sure we build all of them for them to be consistent, so
// rebuild all items if we have perspective. Bug 1431249 should remove
// this requirement.
if (aBuilder->IsRetainingDisplayList() &&
ChildrenHavePerspective(disp)) {
dirtyRect = visibleRect;
aBuilder->MarkFrameModifiedDuringBuilding(this);
}
bool inTransform = aBuilder->IsInTransform();
bool isTransformed = IsTransformed(disp);
bool hasPerspective = HasPerspective(disp);