Closed
Bug 234984
Opened 21 years ago
Closed 21 years ago
Add convenience methods to nsRect
Categories
(Core Graveyard :: GFX, defect)
Core Graveyard
GFX
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: roc, Assigned: roc)
Details
Attachments
(1 file)
3.45 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
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.)
Assignee | ||
Comment 1•21 years ago
|
||
simple enough
Assignee | ||
Updated•21 years ago
|
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+
Assignee | ||
Comment 2•21 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•