[Webkit-unassigned] [Bug 164519] Word transformations apply to a single word instead of entire selection if selection is made by triple-clicking

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 13 11:51:12 PST 2016


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

--- Comment #5 from mitz at webkit.org <mitz at webkit.org> ---
(In reply to comment #4)
> So I guess you are saying that this is a bug in
> WebCore::expandSelectionToGranularity/VisibleSelection::
> expandUsingGranularity.

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161113/e5e64745/attachment.html>


More information about the webkit-unassigned mailing list