<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Word transformations apply to a single word instead of entire selection if selection is made by triple-clicking"
href="https://bugs.webkit.org/show_bug.cgi?id=164519#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Word transformations apply to a single word instead of entire selection if selection is made by triple-clicking"
href="https://bugs.webkit.org/show_bug.cgi?id=164519">bug 164519</a>
from <span class="vcard"><a class="email" href="mailto:mitz@webkit.org" title="mitz@webkit.org <mitz@webkit.org>"> <span class="fn">mitz@webkit.org</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=164519#c4">comment #4</a>)
<span class="quote">> So I guess you are saying that this is a bug in
> WebCore::expandSelectionToGranularity/VisibleSelection::
> expandUsingGranularity.</span >
I am saying that those functions’ behavior doesn’t meet the requirements of word transformations. I don’t know how changing their behavior so that they never contract the selection will affect other uses. I also don’t know exactly how to do that. I tried, naively, to make VisibleSelection::expandUsingGranularity set the base and the extent to the start and end before calling validate, and then restore them, but that wasn’t quite right: it produced word selections that included the trailing space after the word.</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>