b=536065 don't init pixman regions with empty boxes r=roc

This commit is contained in:
Karl Tomlinson 2009-12-29 12:56:24 +13:00
parent 242114778a
commit b21f22f510

View File

@ -1741,7 +1741,9 @@ InitRegion(pixman_region32* aRegion,
nsAutoTArray<pixman_box32,10> rects;
rects.SetCapacity(aRects.Length());
for (PRUint32 i = 0; i < aRects.Length (); ++i) {
rects.AppendElement(ToPixmanBox(aRects[i]));
if (!aRects[i].IsEmpty()) {
rects.AppendElement(ToPixmanBox(aRects[i]));
}
}
pixman_region32_init_rects(aRegion,