[Webkit-unassigned] [Bug 153085] AX: Add a boundary value to AXTextStateChangeType

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 25 09:27:10 PST 2016


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

--- Comment #32 from Darin Adler <darin at apple.com> ---
Comment on attachment 269085
  --> https://bugs.webkit.org/attachment.cgi?id=269085
Patch

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

>>> Source/WebCore/editing/VisiblePosition.h:125
>>> +    bool m_isBoundary = false;
>> 
>> I think it’s dangerous that now we have a type of VisiblePosition that won’t survive a round trop if broken into position and affinity and then made into a VIsiblePosition again. Do we have other options here rather than adding this state to VisiblePosition?
> 
> We could thread error state through the modifyMovingX logic to return why the VisiblePosition it's returning is NULL. It would mean touching a lot more code though.

One way to do it would be to add a new type that’s either a VisiblePosition or a boundary, rather than adding it to the original VisiblePosition type. You would need to touch more code, but just to change the type from VisiblePosition to the new type. Even though it makes the patch bigger, I think that would likely be better than introducing this concept into all other code using VisiblePosition for any other purpose. Could start as simply as a struct with a boolean and a VisiblePosition in it.

-- 
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/20160125/a4bd28d6/attachment.html>


More information about the webkit-unassigned mailing list