mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1216851 - Don't include event regions when deciding if we can flatten opacity. r=roc
This commit is contained in:
parent
afe8dd0b94
commit
fd7cc3d750
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user