Closed
Bug 1057528
Opened 10 years ago
Closed 10 years ago
Allow multiplying/dividing [Int]CoordTyped by ScaleFactor
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: botond, Assigned: botond)
References
Details
Attachments
(1 file)
1.49 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
One thing missing from the storngly-typed coordinate support added in bug 923512 is the ability to multiply or divide an [Int]CoordTyped<src> by a ScaleFactor<dst, src> to yield an [Int]CoordTyped<dst>. We should add these.
Assignee | ||
Comment 1•10 years ago
|
||
Maybe just CoordTyped rather than IntCoordTyped. There are no corresponding operators for IntPointTyped, IntRectTyped, etc., only for PointTyped, RectTyped, etc.
Assignee | ||
Comment 2•10 years ago
|
||
(Turns out we do have the operator for IntRectTyped and IntSizeTyped, but not for IntPointTyped. It seems we've been adding the Int versions on this demand, so I say we do similarly for IntCoordTyped.)
Assignee: nobody → botond
Attachment #8477664 -
Flags: review?(bugmail.mozilla)
Updated•10 years ago
|
Attachment #8477664 -
Flags: review?(bugmail.mozilla) → review+
Assignee | ||
Comment 3•10 years ago
|
||
This tiny patch is not worth its own push.
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2b43187e6a54
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/2b43187e6a54
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•