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:
Matt Woodrow 2015-10-23 11:22:54 +13:00
Родитель bab116d797
Коммит 500639534a
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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;
} }