Bug 1382534 - Use GetBounds() in nsDisplayMask::ComputeVisibility(). r=mstange

The code previously used GetClippedBoundsWithRespectToASR() (changed
in bug 1298218), but this violated the requirements of nsDisplayList::
ComputeVisibilityForSublist().

MozReview-Commit-ID: F9UVMvVKLAp

--HG--
extra : rebase_source : ec188650070d4e8de1b19395c3ed6f31e7d0e04f
This commit is contained in:
Botond Ballo 2017-10-16 17:18:03 -04:00
Родитель 6a7049b903
Коммит 864f4f712b
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -9299,8 +9299,7 @@ bool nsDisplayMask::ComputeVisibility(nsDisplayListBuilder* aBuilder,
// Our children may be made translucent or arbitrarily deformed so we should
// not allow them to subtract area from aVisibleRegion.
nsRegion childrenVisible(mVisibleRect);
nsRect r = mVisibleRect.Intersect(
mList.GetClippedBoundsWithRespectToASR(aBuilder, mActiveScrolledRoot));
nsRect r = mVisibleRect.Intersect(mList.GetBounds(aBuilder));
mList.ComputeVisibilityForSublist(aBuilder, &childrenVisible, r);
return true;
}