[LayoutNG] Implement LayoutNG version of {First,Last}CharacterAfterWhitespaceCollapsing()
This patch implements LayoutNG version of |LayoutText::
{First,Last}CharacterAfterWhitespaceCollapsing()| with making a unit test,
|CharacterAfterWhitespaceCollapsing| to run on both legacy and ng layout tree.
This patch also changes legacy layout tree path of
|LastCharacterAfterWhitespaceCollapsing()| to use |StringView::CodepointAt()|
instead of |String::CharacterStartingAt()| to return last code point in string
instead of trail part of surrogate pair.
Bug: 906915
Change-Id: I364195c5b9366cf7ca890ba2738a4be37779a6bd
Reviewed-on: https://chromium-review.googlesource.com/c/1341776
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by:
Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609652}
Showing
Please register or sign in to comment