From 6bbb02f3ed3c9d2b1e9c7beb2bce031307d3eec5 Mon Sep 17 00:00:00 2001 From: "jwatt%jwatt.org" Date: Sun, 14 Jan 2007 11:39:39 +0000 Subject: [PATCH] Make gfxRect methods const. r=stuart --- gfx/thebes/public/gfxRect.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gfx/thebes/public/gfxRect.h b/gfx/thebes/public/gfxRect.h index ba22f363c505..5dd73a304353 100644 --- a/gfx/thebes/public/gfxRect.h +++ b/gfx/thebes/public/gfxRect.h @@ -59,11 +59,11 @@ struct THEBES_API gfxRect { return (pos != s.pos) || (size != s.size); } - const gfxPoint& TopLeft() { return pos; } - gfxFloat Width() { return size.width; } - gfxFloat Height() { return size.height; } - gfxFloat X() { return pos.x; } - gfxFloat Y() { return pos.y; } + const gfxPoint& TopLeft() const { return pos; } + gfxFloat Width() const { return size.width; } + gfxFloat Height() const { return size.height; } + gfxFloat X() const { return pos.x; } + gfxFloat Y() const { return pos.y; } // XXX figure out what methods (intersect, union, etc) we use and add them. };