Commit Graph
382 Commits
Author SHA1 Message Date
Frédéric Wang Nélar fb859e8508 Bug 2026855 Make scale_stretchy_operators a static pref. r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D290690
2026-03-28 19:18:41 +00:00
serge-sans-paille 115d971353 Bug 2025273 - Activate modernize-loop-convert clang-tidy check r=media-playback-reviewers,webrtc-reviewers,profiler-reviewers,firefox-svg-reviewers,canaltinova,longsonr,mjf,alwu
This is mostly the result of running ./mach static-analysis check --fix
with the new linter activated, with the following caveats:

- use std::fill when it makes sense
- use appropriate names for the loop target variable
- fix constness
- use array default initialization instead of an explicit loop when it
  makes sense

Differential Revision: https://phabricator.services.mozilla.com/D289172
2026-03-26 12:27:13 +00:00
Frédéric Wang Nélar eb50ea45ef Bug 2023903 - Remove preference mathml.rtl_operator_mirroring.enabled. r=emilio,layout-reviewers
This has been enabled by default starting with Firefox 146.

Differential Revision: https://phabricator.services.mozilla.com/D288194
2026-03-26 08:54:06 +00:00
agoloman 6fb4312b1e Revert "Bug 2023903 - Remove preference mathml.rtl_operator_mirroring.enabled. r=emilio,layout-reviewers" for causing gtest failures @MathMLPrefs_NonAdjacent.
This reverts commit ada83c01ee.

Revert "Bug 2023903 - Remove preference mathml.math_shift.enabled. r=emilio,firefox-style-system-reviewers,layout-reviewers"

This reverts commit 59effc5f70.
2026-03-24 12:49:13 +00:00
Frédéric Wang Nélar ada83c01ee Bug 2023903 - Remove preference mathml.rtl_operator_mirroring.enabled. r=emilio,layout-reviewers
This has been enabled by default starting with Firefox 146.

Differential Revision: https://phabricator.services.mozilla.com/D288194
2026-03-24 11:34:31 +00:00
Atila Butkovits a420a28d11 Revert "Bug 2023903 - Remove preference mathml.rtl_operator_mirroring.enabled. r=emilio,layout-reviewers" for causing failures at UserCharacteristics_MathMLPrefs_NonAdjacent.
This reverts commit 8bcd92b612.

Revert "Bug 2023903 - Remove preference mathml.math_shift.enabled. r=emilio,firefox-style-system-reviewers,layout-reviewers"

This reverts commit febddccfd1.
2026-03-24 00:52:51 +00:00
Frédéric Wang Nélar 8bcd92b612 Bug 2023903 - Remove preference mathml.rtl_operator_mirroring.enabled. r=emilio,layout-reviewers
This has been enabled by default starting with Firefox 146.

Differential Revision: https://phabricator.services.mozilla.com/D288194
2026-03-23 10:34:30 +00:00
serge-sans-paille f81328e365 Bug 2023519 - Make our codebase modernize-use-equals-default + modernize-use-equals-delete -safe wrt. clang-tidy r=sylvestre,necko-reviewers,media-playback-reviewers,profiler-reviewers,dom-storage-reviewers,layout-reviewers,dom-worker-reviewers,valentin,jesup,padenot,edenchuang,emilio
The changeset has been generated automatically through:

    ./mach static-analysis check --output ./clang-tidy-bugprone.json --format json --fix

followed by manual adjustment when needed or when the auto-fixer bailed out.

This paves the way for Bug 2023527

Differential Revision: https://phabricator.services.mozilla.com/D287941
2026-03-22 08:35:47 +00:00
Alexandru Marc 04e5f74151 Revert "Bug 2023519 - Make our codebase modernize-use-equals-default + modernize-use-equals-delete -safe wrt. clang-tidy r=sylvestre,necko-reviewers,media-playback-reviewers,profiler-reviewers,dom-storage-reviewers,layout-reviewers,dom-worker-reviewers,valentin,jesup,padenot,edenchuang,emilio"
This reverts commit a64dec2665.
2026-03-19 17:29:58 +00:00
serge-sans-paille a64dec2665 Bug 2023519 - Make our codebase modernize-use-equals-default + modernize-use-equals-delete -safe wrt. clang-tidy r=sylvestre,necko-reviewers,media-playback-reviewers,profiler-reviewers,dom-storage-reviewers,layout-reviewers,dom-worker-reviewers,valentin,jesup,padenot,edenchuang,emilio
The changeset has been generated automatically through:

    ./mach static-analysis check --output ./clang-tidy-bugprone.json --format json --fix

followed by manual adjustment when needed or when the auto-fixer bailed out.

This paves the way for Bug 2023527

Differential Revision: https://phabricator.services.mozilla.com/D287941
2026-03-18 17:25:01 +00:00
serge-sans-paille b60f600e47 Bug 2023529 - Use C++20's std::midpoint to compute average. r=sylvestre,layout-reviewers,emilio
This is more explicit while avoiding potential limit issues.

Differential Revision: https://phabricator.services.mozilla.com/D287943
2026-03-18 09:18:12 +00:00
Sylvestre Ledru 55481ac4b5 Bug 2023419 - Remove Emacs/Vim modelines from layout/ r=emilio,firefox-style-system-reviewers,layout-reviewers
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287852
2026-03-17 12:05:43 +00:00
eri 4657f4c8a6 Bug 2008688 - Prevent mirroring unsupported characters by scale transform when font doesn't support rtlm. r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D285701
2026-03-12 11:13:50 +00:00
Emilio Cobos Álvarez db0bb83641 Bug 2014944 - Remove unused additional computed style APIs. r=jwatt
These were used a while ago for mathml but I think I removed the usages
in bug 1449401 and related. Also for button ::-moz-focus-inner but that
is also gone now.

Differential Revision: https://phabricator.services.mozilla.com/D282097
2026-02-06 10:55:11 +00:00
Frédéric Wang 050e287bd7 Bug 2013528 - Convert NS_MATHML_OPERATOR_SIZE_INFINITY C macro to constexpr. r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D281197
2026-02-04 06:31:00 +00:00
Frédéric Wang 198572e940 Bug 2013528 - Convert NS_MATHML_DELIMITER_* C macros to constexpr. r=layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D281196
2026-02-04 06:30:56 +00:00
Frédéric Wang 88aaf03123 Bug 2013273 - Convert MathML stretch flags to mozilla::EnumSet. r=layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D280949
2026-02-03 16:00:51 +00:00
Frédéric Wang f0727f2777 Bug 2013273 - Make nsStretchDirection an enum class. r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D280935
2026-02-03 16:00:41 +00:00
agoloman cdb00cbee7 Revert "Bug 2013273 - Make GetPreferredStretchSize calculation mode an enum class. r=layout-reviewers,dshin" for causing build bustages @nsMathMLOperators.h.
This reverts commit 9c8eddd444.

Revert "Bug 2013273 - Modernize implementation of nsOperatorFlags. r=layout-reviewers,dshin"

This reverts commit 6cbde817db.

Revert "Bug 2013273 - Ensure underlying types for MathMLFrameType and DrawingMethod are uint8_t. r=layout-reviewers,dshin"

This reverts commit bb3d80f482.

Revert "Bug 2013273 - Convert MathML stretch flags to mozilla::EnumSet. r=layout-reviewers,dshin"

This reverts commit 0abd326292.

Revert "Bug 2013273 - Make mtable eAlign an enum class. r=layout-reviewers,dshin"

This reverts commit da72abe4b4.

Revert "Bug 2013273 - Make nsMencloseNotation an enum class. r=layout-reviewers,dshin"

This reverts commit 1051d05264.

Revert "Bug 2013273 - Make nsStretchDirection an enum class. r=emilio,layout-reviewers"

This reverts commit a98c372331.
2026-02-03 09:57:20 +00:00
Frédéric Wang 0abd326292 Bug 2013273 - Convert MathML stretch flags to mozilla::EnumSet. r=layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D280949
2026-02-03 09:06:19 +00:00
Frédéric Wang a98c372331 Bug 2013273 - Make nsStretchDirection an enum class. r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D280935
2026-02-03 09:06:10 +00:00
Frédéric Wang 12f92743d1 Bug 2008690 - Make nsMathMLmmultiscriptsFrame handle italic correction of largeop base. r=emilio,layout-reviewers
Currently, when a size variant is used for large variants of stretchy
operators, we modify the bounding box of the glyph by substracting any
specified italic correction from the calculated width. This is to mimic
legacy behavior of old math fonts that were handling subscript of
slanted integrals by specifying a width smaller than the actual glyph
extent.

This causes rendering issues when one draws the background of the
corresponding `<mo>` element, or when a slanted integral is rendered in
right-to-left mode. This bug is also detected by WPT test
mathml/presentation-markup/scripts/subsup-parameters-2.html since
one case assumes subscript is placed at the right of the base minus
the italic correction. We strengthen it a bit by actually checking the
base's width is properly set.

MathML Core describes italic correction of all MathML boxes (
measurement of how slanted they are), how it can be calculated
recursively from the box's children and how it applies to sub/sup
script positioning. In this patch, we implement a simplified version
addressing above issues and covering simple cases currently supported
by browsers and actually useful in practice.

Differential Revision: https://phabricator.services.mozilla.com/D277987
2026-01-26 15:08:37 +00:00
Frédéric Wang 2da44da5de Bug 2008530 - Part 2 - Use nsGlyphTable::IsUnicodeTable() instead of raw pointer comparison. r=layout-reviewers,dshin,sergesanspaille
`glyph table == &gUnicodeTable` is used in three places with the glyph
table nullptr in `nsMathMLChar::SetFontFamily` when called from
https://searchfox.org/firefox-main/rev/e61d59b5c9a651fd7bf28043f87c0dc669833496/layout/mathml/nsMathMLChar.cpp#1279

Differential Revision: https://phabricator.services.mozilla.com/D277860
2026-01-06 05:37:56 +00:00
Frédéric Wang 97881a4475 Bug 2008530 - Part 1 Statically initialize the MathML unicode table for stretchy operators. r=layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D277859
2026-01-06 05:37:53 +00:00
agoloman 0e183810c4 Revert "Bug 2008530 - Part 2 - Use nsGlyphTable::IsUnicodeTable() instead of raw pointer comparison. r=layout-reviewers,dshin,sergesanspaille" for causing build bustages @nsMathMLChar.cpp.
This reverts commit 7a3c4b556a.

Revert "Bug 2008530 - Part 1 Statically initialize the MathML unicode table for stretchy operators. r=layout-reviewers,dshin"

This reverts commit 2e216f0f88.

Revert "Bug 2006706 - Document OOM Handling reality r=jandem"

This reverts commit c96f3ae833.
2026-01-05 18:50:01 +00:00
Frédéric Wang 7a3c4b556a Bug 2008530 - Part 2 - Use nsGlyphTable::IsUnicodeTable() instead of raw pointer comparison. r=layout-reviewers,dshin,sergesanspaille
`glyph table == &gUnicodeTable` is used in three places with the glyph
table nullptr in `nsMathMLChar::SetFontFamily` when called from
https://searchfox.org/firefox-main/rev/e61d59b5c9a651fd7bf28043f87c0dc669833496/layout/mathml/nsMathMLChar.cpp#1279

Differential Revision: https://phabricator.services.mozilla.com/D277860
2026-01-05 18:31:05 +00:00
Frédéric Wang 2e216f0f88 Bug 2008530 - Part 1 Statically initialize the MathML unicode table for stretchy operators. r=layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D277859
2026-01-05 18:31:02 +00:00
Frédéric Wang fe6c45d203 Bug 1007090 - Part 4: Hardcode mathfontUnicode.properties. r=emilio,layout-reviewers
Replace mathfontUnicode.properties with a harcoded table with sorted
entries and binary search.

There is no observable behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D277022
2026-01-05 13:25:51 +00:00
Frédéric Wang b771bdae9e Bug 1007090 - Part 3: Rename nsPropertiesTable to nsUnicodeTable. r=emilio,layout-reviewers
After bug 1336058, nsPropertiesTable is only used for
mathfontUnicode.properties, so it can be renamed. Also do some
small cleanup for code that were assuming multiple instances of
nsPropertiesTable.

There is no behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D277012
2026-01-05 13:25:48 +00:00
Frédéric Wang d204b05a83 Bug 1007090 - Part 2: Remove support for external fonts in nsPropertiesTable. r=emilio,layout-reviewers
nsPropertiesTable had a concept of "primary font" (nsGlyphCode.font=0)
and "external fonts" (nsGlyphCode.font > 0) that was used in the past
for fonts like the STIX General set that were using glyphs coming from
multiple fonts to build stretchy operators. After bug 1336058,
nsPropertiesTable is only used for mathfontUnicode.properties which
does not use such external fonts. Additionally, nsOpenTypeTable always
uses nsGlyphCode.font=-1. So nsGlyphCode's font value can become a
boolean, indicating whether the nsGlyphCode is a glyph id or not.

There is no behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D276998
2026-01-05 13:25:45 +00:00
Atila Butkovits cd0b57aa93 Revert "Bug 1007090 - Part 4: Hardcode mathfontUnicode.properties. r=emilio,layout-reviewers" for causing failures complaining about mathfontUnicode.
This reverts commit a0b5057dab.

Revert "Bug 1007090 - Part 3: Rename nsPropertiesTable to nsUnicodeTable. r=emilio,layout-reviewers"

This reverts commit bfab0e2d2e.

Revert "Bug 1007090 - Part 2: Remove support for external fonts in nsPropertiesTable. r=emilio,layout-reviewers"

This reverts commit dc1f434489.

Revert "Bug 1007090 - Part 1: Fix size 0 of U+21A4 in mathfontUnicode.properties. r=emilio,layout-reviewers"

This reverts commit 9b9886bad6.
2026-01-05 12:52:58 +00:00
Frédéric Wang a0b5057dab Bug 1007090 - Part 4: Hardcode mathfontUnicode.properties. r=emilio,layout-reviewers
Replace mathfontUnicode.properties with a harcoded table with sorted
entries and binary search.

There is no observable behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D277022
2026-01-05 10:30:44 +00:00
Frédéric Wang bfab0e2d2e Bug 1007090 - Part 3: Rename nsPropertiesTable to nsUnicodeTable. r=emilio,layout-reviewers
After bug 1336058, nsPropertiesTable is only used for
mathfontUnicode.properties, so it can be renamed. Also do some
small cleanup for code that were assuming multiple instances of
nsPropertiesTable.

There is no behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D277012
2026-01-05 10:30:41 +00:00
Frédéric Wang dc1f434489 Bug 1007090 - Part 2: Remove support for external fonts in nsPropertiesTable. r=emilio,layout-reviewers
nsPropertiesTable had a concept of "primary font" (nsGlyphCode.font=0)
and "external fonts" (nsGlyphCode.font > 0) that was used in the past
for fonts like the STIX General set that were using glyphs coming from
multiple fonts to build stretchy operators. After bug 1336058,
nsPropertiesTable is only used for mathfontUnicode.properties which
does not use such external fonts. Additionally, nsOpenTypeTable always
uses nsGlyphCode.font=-1. So nsGlyphCode's font value can become a
boolean, indicating whether the nsGlyphCode is a glyph id or not.

There is no behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D276998
2026-01-05 10:30:38 +00:00
Jonathan Kew c63cc708e0 Bug 1996403 - Revert changesets 08b700ae5349, 9a06ba9c63f8, and 713d9f3a5771 (bug 1994197 patches 2-4) to restore previous text-measurement behavior and performance. r=firefox-svg-reviewers,longsonr
Differential Revision: https://phabricator.services.mozilla.com/D270323
2025-11-03 23:34:26 +00:00
Narcis Beleuzu 0026ee1f90 Revert "Bug 1996403 - Revert changesets 08b700ae5349, 9a06ba9c63f8, and 713d9f3a5771 (bug 1994197 patches 2-4) to restore previous text-measurement behavior and performance. r=firefox-svg-reviewers,longsonr" for causing failure on 2d.text.drawing.style.letterSpacing.measure.html
This reverts commit 02d6f73d21.
2025-11-03 10:23:47 +00:00
Jonathan Kew 02d6f73d21 Bug 1996403 - Revert changesets 08b700ae5349, 9a06ba9c63f8, and 713d9f3a5771 (bug 1994197 patches 2-4) to restore previous text-measurement behavior and performance. r=firefox-svg-reviewers,longsonr
Differential Revision: https://phabricator.services.mozilla.com/D270323
2025-11-03 09:33:09 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Jonathan Kew 165c9f04a8 Bug 1994197 - patch 4 - Also use integer nscoords for textrun ascent/descent metrics and bounding box. r=firefox-svg-reviewers,longsonr
Differential Revision: https://phabricator.services.mozilla.com/D268561
2025-10-18 07:28:23 +00:00
Jonathan Kew fb4b653594 Bug 1994197 - patch 2 - Convert more text measurement to use integer nscoord values. r=layout-reviewers,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D268560
2025-10-18 07:28:19 +00:00
agoloman 66524bcb3f Revert "Bug 1994197 - patch 4 - Also use integer nscoords for textrun ascent/descent metrics and bounding box. r=firefox-svg-reviewers,longsonr" for causing wr failures @text-combine-upright-gen-con-001.html.
This reverts commit d4927b8866.

Revert "Bug 1994197 - patch 3 - Convert gfxTextRun text advance computation to nscoord values. r=layout-reviewers,emilio"

This reverts commit c2168d7fb8.

Revert "Bug 1994197 - patch 2 - Convert more text measurement to use integer nscoord values. r=layout-reviewers,TYLin"

This reverts commit 995e0ca47e.

Revert "Bug 1994197 - patch 1 - Use integer nscoord values rather than gfxFloat for gfxFont::Spacing fields. r=layout-reviewers,TYLin"

This reverts commit 8c9d04dcc3.
2025-10-18 03:30:12 +00:00
Jonathan Kew d4927b8866 Bug 1994197 - patch 4 - Also use integer nscoords for textrun ascent/descent metrics and bounding box. r=firefox-svg-reviewers,longsonr
Differential Revision: https://phabricator.services.mozilla.com/D268561
2025-10-17 23:35:04 +00:00
Jonathan Kew 995e0ca47e Bug 1994197 - patch 2 - Convert more text measurement to use integer nscoord values. r=layout-reviewers,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D268560
2025-10-17 23:34:59 +00:00
Serban Stanca afa632d8ef Revert "Bug 1994197, Bug 1994193 - patch 3 - Also use integer nscoords for textrun ascent/descent metrics and bounding box. r=firefox-svg-reviewers,longsonr" for causing assertion failures in nsTextFrame.cpp.
This reverts commit eb7cdb05c4.

This reverts commit d1e97328cd.

This reverts commit f0290e617f.

This reverts commit f4ed962505.
2025-10-16 03:03:54 +00:00