Bug 564991. Part 5: Make GetClipRect return a const reference. r=tnikkel

This commit is contained in:
Robert O'Callahan 2010-07-16 09:07:50 +12:00
parent da29165e1d
commit 495351d3e2

View File

@ -1512,7 +1512,7 @@ public:
NS_DISPLAY_DECL_NAME("Clip", TYPE_CLIP)
virtual PRUint32 GetPerFrameKey() { return 0; }
nsRect GetClipRect() { return mClip; }
const nsRect& GetClipRect() { return mClip; }
void SetClipRect(const nsRect& aRect) { mClip = aRect; }
nsIFrame* GetClippingFrame() { return mClippingFrame; }