[webkit-changes] [WebKit/WebKit] 7f5ccd: Add some accessors to WidthIterator's internal ite...

Myles C. Maxfield noreply at github.com
Thu Aug 24 17:59:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7f5ccd87b5c428c990a92a81ff3add2a17e7a2c4
      https://github.com/WebKit/WebKit/commit/7f5ccd87b5c428c990a92a81ff3add2a17e7a2c4
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-08-24 (Thu, 24 Aug 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/ComposedCharacterClusterTextIterator.h
    M Source/WebCore/platform/graphics/Latin1TextIterator.h
    M Source/WebCore/platform/graphics/SurrogatePairAwareTextIterator.h

  Log Message:
  -----------
  Add some accessors to WidthIterator's internal iterators
https://bugs.webkit.org/show_bug.cgi?id=260671
rdar://114400737

Reviewed by Cameron McCormack.

This is in preparation for removing the complex text codepath. These accessors will be
necessary when we actually make WidthIterator understand character clusters. For now,
they are unused.

No tests because there is no behavior change.

* Source/WebCore/platform/graphics/ComposedCharacterClusterTextIterator.h:
(WebCore::ComposedCharacterClusterTextIterator::remainingCharacters const):
(WebCore::ComposedCharacterClusterTextIterator::currentIndex const):
(WebCore::ComposedCharacterClusterTextIterator::characters const):
* Source/WebCore/platform/graphics/Latin1TextIterator.h:
(WebCore::Latin1TextIterator::remainingCharacters const):
* Source/WebCore/platform/graphics/SurrogatePairAwareTextIterator.h:
(WebCore::SurrogatePairAwareTextIterator::remainingCharacters const):
(WebCore::SurrogatePairAwareTextIterator::currentIndex const):
(WebCore::SurrogatePairAwareTextIterator::characters const):

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




More information about the webkit-changes mailing list