As a first steps towards fixing bug #138913, teach InlineTextBox::clampOffset() about combined text and hyphenation.
Created attachment 323062 [details] Patch
Created attachment 323183 [details] Patch
Comment on attachment 323183 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=323183&action=review > Source/WebCore/rendering/InlineTextBox.cpp:629 > + // Fix up the offset if we are combined text or have a hyphen. We treat combined text as a Will update this comment to read: Fix up the offset if we are combined text or have a hyphen because we manage these embellishments. That is, they are not reflected in renderer().text(). We treat combined text as a single unit. We also treat the last codepoint in this box and the hyphen as a single unit.
Committed r223259: <https://trac.webkit.org/changeset/223259>
<rdar://problem/34964018>