<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - AX: WKContentView needs to implement UITextInput methods to make speak selection highlighting work"
href="https://bugs.webkit.org/show_bug.cgi?id=166955#c23">Comment # 23</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - AX: WKContentView needs to implement UITextInput methods to make speak selection highlighting work"
href="https://bugs.webkit.org/show_bug.cgi?id=166955">bug 166955</a>
from <span class="vcard"><a class="email" href="mailto:n_wang@apple.com" title="Nan Wang <n_wang@apple.com>"> <span class="fn">Nan Wang</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=166955#c22">comment #22</a>)
<span class="quote">> Comment on <span class=""><a href="attachment.cgi?id=299871&action=diff" name="attach_299871" title="patch with test">attachment 299871</a> <a href="attachment.cgi?id=299871&action=edit" title="patch with test">[details]</a></span>
> patch with test
>
> View in context:
> <a href="https://bugs.webkit.org/attachment.cgi?id=299871&action=review">https://bugs.webkit.org/attachment.cgi?id=299871&action=review</a>
>
> > Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:1863
> > + // Sometimes we did not advance enough to create a text range, e.g. when there's a soft line break.
>
> How does soft line break prevent Position from moving forward/backward?
> This definitely needs a test case.</span >
It doesn't prevent position from moving forward/backward. The problem is that the offset we passed in comes from NSRange from a string and VisiblePosition sometimes need to advance more to get the same string.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>