Bug 1045213 - Make ns(Int)Region methods chainable. r=jrmuizel

This commit is contained in:
Markus Stange 2015-02-04 17:25:18 -05:00
parent 8dd872752a
commit 697fffb47b

View File

@ -128,13 +128,13 @@ public:
return Copy(TmpRect);
}
void OrWith(const nsRegion& aOther)
nsRegion& OrWith(const nsRegion& aOther)
{
Or(*this, aOther);
return Or(*this, aOther);
}
void OrWith(const nsRect& aOther)
nsRegion& OrWith(const nsRect& aOther)
{
Or(*this, aOther);
return Or(*this, aOther);
}
nsRegion& Or(const nsRegion& aRgn1, const nsRegion& aRgn2)
{
@ -156,13 +156,13 @@ public:
return Or (*this, aRect2);
}
void XorWith(const nsRegion& aOther)
nsRegion& XorWith(const nsRegion& aOther)
{
Xor(*this, aOther);
return Xor(*this, aOther);
}
void XorWith(const nsRect& aOther)
nsRegion& XorWith(const nsRect& aOther)
{
Xor(*this, aOther);
return Xor(*this, aOther);
}
nsRegion& Xor(const nsRegion& aRgn1, const nsRegion& aRgn2)
{
@ -189,13 +189,13 @@ public:
nsRegion ToAppUnits (nscoord aAppUnitsPerPixel) const;
void SubOut(const nsRegion& aOther)
nsRegion& SubOut(const nsRegion& aOther)
{
Sub(*this, aOther);
return Sub(*this, aOther);
}
void SubOut(const nsRect& aOther)
nsRegion& SubOut(const nsRect& aOther)
{
Sub(*this, aOther);
return Sub(*this, aOther);
}
nsRegion& Sub(const nsRegion& aRgn1, const nsRegion& aRgn2)
{
@ -522,13 +522,13 @@ public:
return *this;
}
void OrWith(const nsIntRegion& aOther)
nsIntRegion& OrWith(const nsIntRegion& aOther)
{
Or(*this, aOther);
return Or(*this, aOther);
}
void OrWith(const nsIntRect& aOther)
nsIntRegion& OrWith(const nsIntRect& aOther)
{
Or(*this, aOther);
return Or(*this, aOther);
}
nsIntRegion& Or (const nsIntRegion& aRgn1, const nsIntRegion& aRgn2)
{
@ -550,13 +550,13 @@ public:
return Or (*this, aRect2);
}
void XorWith(const nsIntRegion& aOther)
nsIntRegion& XorWith(const nsIntRegion& aOther)
{
Xor(*this, aOther);
return Xor(*this, aOther);
}
void XorWith(const nsIntRect& aOther)
nsIntRegion& XorWith(const nsIntRect& aOther)
{
Xor(*this, aOther);
return Xor(*this, aOther);
}
nsIntRegion& Xor (const nsIntRegion& aRgn1, const nsIntRegion& aRgn2)
{
@ -578,13 +578,13 @@ public:
return Xor (*this, aRect2);
}
void SubOut(const nsIntRegion& aOther)
nsIntRegion& SubOut(const nsIntRegion& aOther)
{
Sub(*this, aOther);
return Sub(*this, aOther);
}
void SubOut(const nsIntRect& aOther)
nsIntRegion& SubOut(const nsIntRect& aOther)
{
Sub(*this, aOther);
return Sub(*this, aOther);
}
nsIntRegion& Sub (const nsIntRegion& aRgn1, const nsIntRegion& aRgn2)
{