Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bf9919eb6000e6381099b9b49189dab49ddfc611
      
https://github.com/WebKit/WebKit/commit/bf9919eb6000e6381099b9b49189dab49ddfc611
  Author: Vitor Roriz <[email protected]>
  Date:   2026-03-12 (Thu, 12 Mar 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/WidthIterator.cpp

  Log Message:
  -----------
  WidthIterator::advanceInternal: Extract fontForTextSpacingTrim helper
https://bugs.webkit.org/show_bug.cgi?id=309710
rdar://172308707

Reviewed by Sammy Gill.

The text-spacing-trim adjustment (build CharactersData, call
getHalfWidthFontIfNeeded, override glyphData.font) was duplicated in the
pre-loop setup and inside the main character loop. Extract into a static
helper that returns the adjusted font pointer.

* Source/WebCore/platform/graphics/WidthIterator.cpp:
(WebCore::fontForTextSpacingTrim):
(WebCore::WidthIterator::advanceInternal):

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



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

Reply via email to