Add convenience methods to nsRect

RESOLVED FIXED

Status

Core Graveyard
GFX
RESOLVED FIXED
14 years ago
9 years ago

People

(Reporter: roc, Assigned: roc)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

I'd like to add a few things to nsRect:
-- operator+ and operator- to translate by an nsPoint
-- methods to return the corners of the rect as nsPoints

Also, nsRect and nsSize have some bogus operator+ and operator- methods. It
doesn't make sense to add two rectangles or two sizes. (Adding two sizes is
marginal; subtracting one size from another is really dumb.)
Attachment #141793 - Flags: superreview?(dbaron)
Attachment #141793 - Flags: review?(dbaron)
Attachment #141793 - Flags: superreview?(dbaron)
Attachment #141793 - Flags: superreview+
Attachment #141793 - Flags: review?(dbaron)
Attachment #141793 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.