Bug 1216851 - Don't include event regions when deciding if we can flatten opacity. r=roc

This commit is contained in:
Matt Woodrow 2015-10-23 11:22:54 +13:00
parent afe8dd0b94
commit fd7cc3d750

View File

@ -3962,6 +3962,10 @@ nsDisplayOpacity::ShouldFlattenAway(nsDisplayListBuilder* aBuilder)
bool snap;
uint32_t numChildren = 0;
for (; numChildren < ArrayLength(children) && child; numChildren++, child = child->GetAbove()) {
if (child->GetType() == nsDisplayItem::TYPE_LAYER_EVENT_REGIONS) {
numChildren--;
continue;
}
if (!child->CanApplyOpacity()) {
return false;
}