mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
Made nsBandTrapezoid::GetRect const
This commit is contained in:
parent
7972c3adb0
commit
7dd8fb7af7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user