Closed Bug 1646224 Opened 5 years ago Closed 5 years ago

Use mozilla::Length rather than nscoord to store font sizes.

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

This is the last usage of nscoord in nsStyleStruct (except for border / outline widths and such which round to device pixels).

This is relevant because I was poking to change AppUnitsPerCssPixel to return 64, but that causes some precision loss when computing EM units and such which is not necessary.

This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/299e19193e11 Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
Backout by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d3c62c6802c9 Backed out changeset 299e19193e11 for causing font related failures. CLOSED TREE
Attachment #9157161 - Attachment description: Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=#style → Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7a13c7744245 Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Regressions: 1682607
Regressions: CVE-2021-23997
Depends on: 1703592
No longer depends on: 1703592
Regressions: 1703592
Regressions: 1715631
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: