Bug 1147707 - Intersect correctly in DisplayItemClip::ApplyNonRoundedIntersection. r=roc

This commit is contained in:
Seth Fowler 2015-03-26 15:39:52 -07:00
parent eda3d21adf
commit c72f3c4fe8

View File

@ -327,7 +327,7 @@ DisplayItemClip::ApplyNonRoundedIntersection(const nsRect& aRect) const
nsRect result = aRect.Intersect(mClipRect);
for (uint32_t i = 0, iEnd = mRoundedClipRects.Length();
i < iEnd; ++i) {
result.Intersect(mRoundedClipRects[i].mRect);
result = result.Intersect(mRoundedClipRects[i].mRect);
}
return result;
}