зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7d74fb8a1e
Коммит
25ba978024
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче