зеркало из https://github.com/mozilla/pjs.git
bug 726962 - remove stray instances of PRBool in gfx. r=joe
This commit is contained in:
Родитель
33fa57ec0b
Коммит
40198e7c4e
|
@ -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; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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]) &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче