Closed Bug 1767120 Opened 3 years ago Closed 3 years ago

[meta] Use ScaleFactors2D rather than gfxSize or similar to represent 2D scales

Categories

(Core :: Graphics, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: botond, Unassigned)

References

Details

(Keywords: meta)

The class ScaleFactors2D was introduced in 2015, but there's a lot of code that pre-dates it which uses size types such as gfxSize or gfx::Size to represent 2D scales.

This meta bug tracks converting such existing uses to use ScaleFactors2D.

Depends on: 1767121
Depends on: 1767122
Depends on: 1767123
Depends on: 1767124
Depends on: 1767125
Depends on: 1767126
Depends on: 1767127
Depends on: 1770289
Depends on: 1771533
Depends on: 1773382
Depends on: 1773384
Depends on: 1773385
Depends on: 1773387

Now that all of the sub-bugs so far have been resolved, should the meta bug be closed as well, or is there additional work to appear?

I found two final ones searching for local variables of type gfx::Size which are really scales:

https://searchfox.org/mozilla-central/rev/70504e4c6fe61c027675c792d328ee476b6b1c1f/image/RasterImage.cpp#1341
https://searchfox.org/mozilla-central/rev/70504e4c6fe61c027675c792d328ee476b6b1c1f/image/VectorImage.cpp#1227

Please feel free to file a bug for converting them.

Depends on: 1775205
No longer depends on: 1775205
Depends on: 1775209

Sorry for bug 1775205, I've accidentally opened it as an enhancement (instead of task), and then had no way of changing its type by editing it - so I just closed it as invalid and created bug 1775209 instead. My mistake.

That's all the places I can think of, so I'm going to close this.

Thank you Razvan for all your help with this!

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

No problem, happy to help! Thanks for the prompt reviews!

You need to log in before you can comment on or make changes to this bug.