Closed Bug 1057528 Opened 10 years ago Closed 10 years ago

Allow multiplying/dividing [Int]CoordTyped by ScaleFactor

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(1 file)

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.
Maybe just CoordTyped rather than IntCoordTyped. There are no corresponding operators for IntPointTyped, IntRectTyped, etc., only for PointTyped, RectTyped, etc.
Attached patch bug1057582.patchSplinter Review
(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)
Attachment #8477664 - Flags: review?(bugmail.mozilla) → review+
This tiny patch is not worth its own push.
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.

Attachment

General

Created:
Updated:
Size: