Bug 945203. Part 3: Implement nsRegion::Swap. r=jrmuizel

--HG--
extra : rebase_source : ee43bf510f8d2bac998d24511327c33362044c79
This commit is contained in:
Robert O'Callahan 2013-12-17 00:01:38 +13:00
parent 7df40b24c3
commit a50c5e83a9

View File

@ -59,6 +59,13 @@ public:
return IsEqual(aRgn);
}
void Swap(nsRegion* aOther)
{
pixman_region32_t tmp = mImpl;
mImpl = aOther->mImpl;
aOther->mImpl = tmp;
}
static
nsresult InitStatic()
{
@ -358,6 +365,11 @@ public:
return IsEqual(aRgn);
}
void Swap(nsIntRegion* aOther)
{
mImpl.Swap(&aOther->mImpl);
}
nsIntRegion& And (const nsIntRegion& aRgn1, const nsIntRegion& aRgn2)
{
mImpl.And (aRgn1.mImpl, aRgn2.mImpl);