<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Add a boundary value to AXTextStateChangeType"
   href="https://bugs.webkit.org/show_bug.cgi?id=153085#c19">Comment # 19</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Add a boundary value to AXTextStateChangeType"
   href="https://bugs.webkit.org/show_bug.cgi?id=153085">bug 153085</a>
              from <span class="vcard"><a class="email" href="mailto:cfleizach&#64;apple.com" title="chris fleizach &lt;cfleizach&#64;apple.com&gt;"> <span class="fn">chris fleizach</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=269010&amp;action=diff" name="attach_269010" title="Patch">attachment 269010</a> <a href="attachment.cgi?id=269010&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=269010&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=269010&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/ChangeLog:9
&gt; +        an editable elements boundaries.</span >

elements -&gt; element's

<span class="quote">&gt; Source/WebCore/accessibility/mac/AXObjectCacheMac.mm:385
&gt; +                [userInfo setObject:[NSNumber numberWithBool:intent.selection.focusChange] forKey:NSAccessibilityTextSelectionChangedFocus];</span >

&#64;(intent.selectin.focusChange)

<span class="quote">&gt; Source/WebCore/editing/FrameSelection.cpp:1110
&gt; +        // FIXME: BIDI</span >

do you have a WK bug to reference

<span class="quote">&gt; Source/WebCore/editing/FrameSelection.cpp:1164
&gt; +    return (AXTextSelection) { intentDirection, intentGranularity, false };</span >

is the cast necessary (it may very well be, but i'm curious)

<span class="quote">&gt; Source/WebCore/editing/VisiblePosition.h:57
&gt; +        , m_isBoundary(false)</span >

m_isBoundary should be false by default. you may not need to initialize

<span class="quote">&gt; Source/WebCore/editing/VisiblePosition.h:60
&gt; +    VisiblePosition(bool boundary) : m_affinity(VP_DEFAULT_AFFINITY), m_isBoundary(boundary) { };</span >

should this be &quot;bool boundary = false&quot; so you get the default behavior without changing code to be no?
or should we make a static boundaryVisiblePosition() class method that returns the right object

i know people don't generally like passing around bools where the value is not clear what its for

<span class="quote">&gt; LayoutTests/accessibility/mac/selection-boundary-userinfo.html:8
&gt; +&lt;div role=&quot;textbox&quot; tabindex=0 id=&quot;textbox&quot; contenteditable=true&gt;</span >

can you also add a test with a input type=&quot;text&quot;

<span class="quote">&gt; LayoutTests/accessibility/mac/selection-boundary-userinfo.html:30
&gt; +                    shouldBe(&quot;results[0]&quot;, &quot;AXTextStateChangeTypeSelectionMove&quot;);</span >

looks like this file has some tabs in it</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>