mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=536065 don't init pixman regions with empty boxes r=roc
This commit is contained in:
parent
d2bb3e348e
commit
b94030a69c
@ -1741,8 +1741,10 @@ InitRegion(pixman_region32* aRegion,
|
|||||||
nsAutoTArray<pixman_box32,10> rects;
|
nsAutoTArray<pixman_box32,10> rects;
|
||||||
rects.SetCapacity(aRects.Length());
|
rects.SetCapacity(aRects.Length());
|
||||||
for (PRUint32 i = 0; i < aRects.Length (); ++i) {
|
for (PRUint32 i = 0; i < aRects.Length (); ++i) {
|
||||||
|
if (!aRects[i].IsEmpty()) {
|
||||||
rects.AppendElement(ToPixmanBox(aRects[i]));
|
rects.AppendElement(ToPixmanBox(aRects[i]));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pixman_region32_init_rects(aRegion,
|
pixman_region32_init_rects(aRegion,
|
||||||
rects.Elements(), rects.Length());
|
rects.Elements(), rects.Length());
|
||||||
|
Loading…
Reference in New Issue
Block a user