зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6a7049b903
Коммит
864f4f712b
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче