Bug 307009
| Summary: | Convert MathMLFractionElement::FractionAlignment to a scoped enum class | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | zak ridouh <zakr> |
| Component: | New Bugs | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/169663062>
zak ridouh
Pull request: https://github.com/WebKit/WebKit/pull/57903
EWS
Committed 306827@main (54fef734c361): <https://commits.webkit.org/306827@main>
Reviewed commits have been landed. Closing PR #57903 and removing active labels.