Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3575a7979008506c38cc0c629372147d09f62e92
https://github.com/WebKit/WebKit/commit/3575a7979008506c38cc0c629372147d09f62e92
Author: Vitor Roriz <[email protected]>
Date: 2026-03-09 (Mon, 09 Mar 2026)
Changed paths:
M Source/WebCore/platform/graphics/WidthIterator.cpp
Log Message:
-----------
WidthIterator::applyExtraSpacingAfterShaping: extract
buildCharacterToGlyphMapping and applyHorizontalGlyphStretch
https://bugs.webkit.org/show_bug.cgi?id=309431
rdar://172002254
Reviewed by Sammy Gill.
This function is too long and hard to read. We can encapsulate parts of it
as it is doing different things at each phase. We can extract two of these
things into free functions:
- buildCharacterToGlyphMapping: builds the character-to-glyph index range
mapping and per-character advance widths from the glyph buffer.
- applyHorizontalGlyphStretch: applies SVG horizontal glyph stretch to
all non-tab glyph advances.
It should have no behavioral change, so no tests...
Since we are here we are also renaming indexes in these
functions that are called meaningness 'i'.
Canonical link: https://commits.webkit.org/308945@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications