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