Bug 307009

Summary: Convert MathMLFractionElement::FractionAlignment to a scoped enum class
Product: WebKit Reporter: zak ridouh <zakr>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.