bug 726962 - remove stray instances of PRBool in gfx. r=joe

This commit is contained in:
Jonathan Kew 2012-02-14 16:17:19 +00:00
parent 0a1f533b73
commit dfd78e9265
3 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ public:
class RemoveEdgesToComparator
{
public:
PRBool Equals(const Edge& a, T const& b) const { return a.mTo == b; }
bool Equals(const Edge& a, T const& b) const { return a.mTo == b; }
};
/**

View File

@ -480,7 +480,7 @@ gfxContext::Rectangle(const gfxRect& rect, bool snapToPixels)
if (snapToPixels) {
gfxRect newRect(rect);
if (UserToDevicePixelSnapped(newRect, PR_TRUE)) {
if (UserToDevicePixelSnapped(newRect, true)) {
gfxMatrix mat = ThebesMatrix(mDT->GetTransform());
mat.Invert();
@ -1608,7 +1608,7 @@ gfxContext::PointInStroke(const gfxPoint& pt)
return cairo_in_stroke(mCairo, pt.x, pt.y);
} else {
// XXX - Used by SVG, needs fixing.
return PR_FALSE;
return false;
}
}
@ -1669,7 +1669,7 @@ gfxContext::HasError()
return cairo_status(mCairo) != CAIRO_STATUS_SUCCESS;
} else {
// As far as this is concerned, an Azure context is never in error.
return PR_FALSE;
return false;
}
}

View File

@ -50,7 +50,7 @@ struct THEBES_API gfxQuad {
mPoints[3] = aFour;
}
PRBool Contains(const gfxPoint& aPoint)
bool Contains(const gfxPoint& aPoint)
{
return (gfxLineSegment(mPoints[0], mPoints[1]).PointsOnSameSide(aPoint, mPoints[2]) &&
gfxLineSegment(mPoints[1], mPoints[2]).PointsOnSameSide(aPoint, mPoints[3]) &&