mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 945203. Part 3: Implement nsRegion::Swap. r=jrmuizel
--HG-- extra : rebase_source : ee43bf510f8d2bac998d24511327c33362044c79
This commit is contained in:
parent
7df40b24c3
commit
a50c5e83a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user