зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1216851 - Don't include event regions when deciding if we can flatten opacity. r=roc
--HG-- extra : rebase_source : 5bc16d6c15e5063b565dccafef71bf3a83744009
This commit is contained in:
Родитель
bab116d797
Коммит
500639534a
|
@ -3962,6 +3962,10 @@ nsDisplayOpacity::ShouldFlattenAway(nsDisplayListBuilder* aBuilder)
|
||||||
bool snap;
|
bool snap;
|
||||||
uint32_t numChildren = 0;
|
uint32_t numChildren = 0;
|
||||||
for (; numChildren < ArrayLength(children) && child; numChildren++, child = child->GetAbove()) {
|
for (; numChildren < ArrayLength(children) && child; numChildren++, child = child->GetAbove()) {
|
||||||
|
if (child->GetType() == nsDisplayItem::TYPE_LAYER_EVENT_REGIONS) {
|
||||||
|
numChildren--;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!child->CanApplyOpacity()) {
|
if (!child->CanApplyOpacity()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче