mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
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:
parent
3c5b5341ed
commit
614fc7e747
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user