Made nsBandTrapezoid::GetRect const

git-svn-id: svn://10.0.0.236/trunk@16580 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-12-17 18:49:39 +00:00
parent 5b9e4e49dd
commit 48aa04cc90

View File

@@ -56,7 +56,7 @@ struct nsBandTrapezoid {
nscoord GetHeight() {return yBottom - yTop;}
// Get the bouding rect of the trapezoid
void GetRect(nsRect& aRect);
void GetRect(nsRect& aRect) const;
// Set the trapezoid from a rectangle
void operator=(const nsRect& aRect);
@@ -183,7 +183,7 @@ public:
virtual void ClearRegions() = 0;
};
void inline nsBandTrapezoid::GetRect(nsRect& aRect)
void inline nsBandTrapezoid::GetRect(nsRect& aRect) const
{
aRect.x = PR_MIN(xTopLeft, xBottomLeft);
aRect.y = yTop;