WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
307011
Convert MathOperator::GlyphPaintTrimming to a scoped enum class
https://bugs.webkit.org/show_bug.cgi?id=307011
Summary
Convert MathOperator::GlyphPaintTrimming to a scoped enum class
zak ridouh
Reported
2026-02-04 16:50:26 PST
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
Comment 1
2026-02-04 16:50:33 PST
<
rdar://problem/169664534
>
zak ridouh
Comment 2
2026-02-04 16:52:42 PST
Pull request:
https://github.com/WebKit/WebKit/pull/57905
EWS
Comment 3
2026-02-05 00:04:28 PST
Committed
306837@main
(7afa3a8783a6): <
https://commits.webkit.org/306837@main
> Reviewed commits have been landed. Closing PR #57905 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug