Bug 1577190. Don't treat Mask items like Filter items in DetectContainerLayerPropertiesBoundsChange. r=nical,mstange

This is a remnant from the previous implementation of masking. That
implementation was replaced in bug 1447880.

Differential Revision: https://phabricator.services.mozilla.com/D43763

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jeff Muizelaar 2019-08-28 18:51:45 +00:00
Родитель 7d74fb8a1e
Коммит 25ba978024
1 изменённых файлов: 4 добавлений и 10 удалений

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

@ -266,16 +266,10 @@ static bool IsContainerLayerItem(nsDisplayItem* aItem) {
static bool DetectContainerLayerPropertiesBoundsChange(
nsDisplayItem* aItem, BlobItemData* aData,
nsDisplayItemGeometry& aGeometry) {
switch (aItem->GetType()) {
case DisplayItemType::TYPE_MASK:
case DisplayItemType::TYPE_FILTER: {
// These two items go through BasicLayerManager composition which clips to
// the BuildingRect
aGeometry.mBounds = aGeometry.mBounds.Intersect(aItem->GetBuildingRect());
break;
}
default:
break;
if (aItem->GetType() == DisplayItemType::TYPE_FILTER) {
// Filters go through BasicLayerManager composition which clips to
// the BuildingRect
aGeometry.mBounds = aGeometry.mBounds.Intersect(aItem->GetBuildingRect());
}
return !aGeometry.mBounds.IsEqualEdges(aData->mGeometry->mBounds);