Closed Bug 1800530 Opened 2 years ago Closed 2 years ago

Add CoordTyped overloads of FuzzyEqualsAdditive/Multiplicative

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: botond, Assigned: rzvncj, Mentored)

References

Details

Attachments

(1 file)

As a follow-up to bug 1060421, it would be nice to add overloads of FuzzyEqualsAdditive and FuzzyEqualsMultiplicative which take CoordTyped arguments.

This would allow many call sites of these functions to pass CoordTyped arguments directly instead of unwrapping .value, and therefore benefit from the compiler checking that the two arguments being compared are in the same coordinate system.

The new overloads can like in Coord.h.

cc Razvan in case you're interested

Type: defect → task
Priority: -- → P3
Assignee: nobody → rzvncj
Status: NEW → ASSIGNED
Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e1abffd9ceee
Add CoordTyped overloads of FuzzyEqualsAdditive/Multiplicative. r=botond
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: