Bug 307011
| Summary: | Convert MathOperator::GlyphPaintTrimming 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
Similar to, https://bugs.webkit.org/show_bug.cgi?id=307009, convert MathOperator::GlyphPaintTrimming to a scoped enum class.
Use enum class with uint8_t underlying type and shorter value names (Top, Bottom, TopAndBottom, Left, Right, LeftAndRight) instead of the Trim-prefixed C-style enum values.
This provides stronger type safety by preventing implicit conversions to integers, 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/169664534>
zak ridouh
Pull request: https://github.com/WebKit/WebKit/pull/57905
EWS
Committed 306837@main (7afa3a8783a6): <https://commits.webkit.org/306837@main>
Reviewed commits have been landed. Closing PR #57905 and removing active labels.