mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
b=536065 don't init pixman regions with empty boxes r=roc
This commit is contained in:
parent
242114778a
commit
b21f22f510
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user