[Webkit-unassigned] [Bug 232053] Negative length returned by TextUtil::midWordBreak with surrogate pair

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 20 20:41:18 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=232053

--- Comment #2 from Myles C. Maxfield <mmaxfield at apple.com> ---
Comment on attachment 441951
  --> https://bugs.webkit.org/attachment.cgi?id=441951
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=441951&action=review

> Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp:181
> +    return { startPosition, std::max<unsigned>(right, startPosition) - startPosition, leftSideWidth };

Do you have any more detail about the circumstances leading to this being negative? I'm not sure this is the right fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211021/cc56b600/attachment-0001.htm>


More information about the webkit-unassigned mailing list