Bug 752953 - Typo in calculation of 'allowExpansion' (result will always be an empty rect) in nsDisplayScrollLayer::ComputeVisibility. r=roc

This commit is contained in:
Mats Palmgren 2012-05-09 21:53:15 +02:00
Родитель b5c50fc691
Коммит af9309e5fb
1 изменённых файлов: 1 добавлений и 1 удалений

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

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