Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7afa3a8783a65edcb48a885e7c73656aaacd4e0e
      
https://github.com/WebKit/WebKit/commit/7afa3a8783a65edcb48a885e7c73656aaacd4e0e
  Author: Zak Ridouh <[email protected]>
  Date:   2026-02-05 (Thu, 05 Feb 2026)

  Changed paths:
    M Source/WebCore/rendering/mathml/MathOperator.cpp
    M Source/WebCore/rendering/mathml/MathOperator.h

  Log Message:
  -----------
  Convert MathOperator::GlyphPaintTrimming to a scoped enum class
https://bugs.webkit.org/show_bug.cgi?id=307011
rdar://169664534

Reviewed by Sammy Gill.

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.

No new tests, as no functionality change.

* Source/WebCore/rendering/mathml/MathOperator.cpp:
(WebCore::MathOperator::paintGlyph):
(WebCore::MathOperator::fillWithVerticalExtensionGlyph):
(WebCore::MathOperator::fillWithHorizontalExtensionGlyph):
(WebCore::MathOperator::paintVerticalGlyphAssembly):
(WebCore::MathOperator::paintHorizontalGlyphAssembly):
* Source/WebCore/rendering/mathml/MathOperator.h:

Canonical link: https://commits.webkit.org/306837@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to