RESOLVED FIXED307009
Convert MathMLFractionElement::FractionAlignment to a scoped enum class
https://bugs.webkit.org/show_bug.cgi?id=307009
Summary Convert MathMLFractionElement::FractionAlignment to a scoped enum class
zak ridouh
Reported 2026-02-04 16:28:19 PST
Use an enum class with `uint8_t` as the underlying type and shorter value names (Center, Left, Right) instead of the C-style enum values. This provides stronger type safety by preventing implicit conversions to ints, avoids polluting the enclosing namespace with enumerator names, and reduces storage size from `int` to `uint8_t`.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-04 16:28:26 PST
zak ridouh
Comment 2 2026-02-04 16:30:04 PST
EWS
Comment 3 2026-02-04 18:19:39 PST
Committed 306827@main (54fef734c361): <https://commits.webkit.org/306827@main> Reviewed commits have been landed. Closing PR #57903 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.