Bug 1468020 - Don't layerize filter and mask items. r=mstange

This restricts the active-item-detection code to wrap lists because
other wrapper items are not supported yet.

MozReview-Commit-ID: JuirkAId7Kk

--HG--
extra : rebase_source : 5dbb8af8504f301ca49273b4f6f434a91524860a
This commit is contained in:
Kartikaya Gupta 2018-07-24 14:21:07 -04:00
parent 3c5b5341ed
commit 614fc7e747

View File

@ -915,11 +915,10 @@ IsItemProbablyActive(nsDisplayItem* aItem, nsDisplayListBuilder* aDisplayListBui
bool active = opacityItem->NeedsActiveLayer(aDisplayListBuilder, opacityItem->Frame());
GP("active: %d\n", active);
return active || HasActiveChildren(*opacityItem->GetChildren(), aDisplayListBuilder);
} else if (aItem->GetType() == DisplayItemType::TYPE_WRAP_LIST && aItem->GetChildren()) {
return HasActiveChildren(*aItem->GetChildren(), aDisplayListBuilder);
}
// TODO: handle other items?
if (aItem->GetChildren()) {
return HasActiveChildren(*aItem->GetChildren(), aDisplayListBuilder);;
}
return false;
}