diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index a39ef52a022..4cf47a2ceb6 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -2111,7 +2111,7 @@ nsDisplayScrollLayer::ComputeVisibility(nsDisplayListBuilder* aBuilder, nsRect boundedRect; boundedRect.IntersectRect(childVisibleRegion.GetBounds(), mList.GetBounds(aBuilder)); nsRect allowExpansion; - allowExpansion.IntersectRect(allowExpansion, boundedRect); + allowExpansion.IntersectRect(boundedRect, aAllowVisibleRegionExpansion); bool visible = mList.ComputeVisibilityForSublist( aBuilder, &childVisibleRegion, boundedRect, allowExpansion); mVisibleRect = boundedRect;