Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 54fef734c36142f52c3392debb5f30e3a55e3591
https://github.com/WebKit/WebKit/commit/54fef734c36142f52c3392debb5f30e3a55e3591
Author: Zak Ridouh <[email protected]>
Date: 2026-02-04 (Wed, 04 Feb 2026)
Changed paths:
M Source/WebCore/mathml/MathMLFractionElement.cpp
M Source/WebCore/mathml/MathMLFractionElement.h
M Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
Log Message:
-----------
Convert MathMLFractionElement::FractionAlignment to a scoped enum class
https://bugs.webkit.org/show_bug.cgi?id=307009
rdar://169663062
Reviewed by Vitor Roriz, Alan Baradlay, and Sammy Gill.
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`.
No new tests, since there is no change in functionality.
* Source/WebCore/mathml/MathMLFractionElement.cpp:
(WebCore::MathMLFractionElement::cachedFractionAlignment):
* Source/WebCore/mathml/MathMLFractionElement.h:
* Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp:
(WebCore::RenderMathMLFraction::horizontalOffset const):
Canonical link: https://commits.webkit.org/306827@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications