<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#c20">Comment # 20</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:d_russell&#64;apple.com" title="Doug Russell &lt;d_russell&#64;apple.com&gt;"> <span class="fn">Doug Russell</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=153085#c19">comment #19</a>)
<span class="quote">&gt; 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>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <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>
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:9
&gt; &gt; +        an editable elements boundaries.
&gt; 
&gt; elements -&gt; element's</span >

will do

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

will do

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/FrameSelection.cpp:1110
&gt; &gt; +        // FIXME: BIDI
&gt; 
&gt; do you have a WK bug to reference</span >

I'll file one

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/FrameSelection.cpp:1164
&gt; &gt; +    return (AXTextSelection) { intentDirection, intentGranularity, false };
&gt; 
&gt; is the cast necessary (it may very well be, but i'm curious)</span >

This syntax was suggested by Darin in past reviews, I'll see if the cast can be dropped

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/VisiblePosition.h:57
&gt; &gt; +        , m_isBoundary(false)
&gt; 
&gt; m_isBoundary should be false by default. you may not need to initialize</span >

That is how I had it, trying this way to see if that's what was tripping up the windows build (it's one of the bigger things I changed between patches when windows stopped building)

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/VisiblePosition.h:60
&gt; &gt; +    VisiblePosition(bool boundary) : m_affinity(VP_DEFAULT_AFFINITY), m_isBoundary(boundary) { };
&gt; 
&gt; should this be &quot;bool boundary = false&quot; so you get the default behavior
&gt; without changing code to be no?
&gt; or should we make a static boundaryVisiblePosition() class method that
&gt; returns the right object</span >

If you want boundary to be false you can just call VisiblePosition(). I can do a static if you prefer but it feels odd to not use a constructor.

<span class="quote">&gt; 
&gt; i know people don't generally like passing around bools where the value is
&gt; not clear what its for</span >

And we'd solve that with the static method?

<span class="quote">&gt; 
&gt; &gt; LayoutTests/accessibility/mac/selection-boundary-userinfo.html:8
&gt; &gt; +&lt;div role=&quot;textbox&quot; tabindex=0 id=&quot;textbox&quot; contenteditable=true&gt;
&gt; 
&gt; can you also add a test with a input type=&quot;text&quot;</span >

Yup. As is this patch doesn't post a boundary notification when arrowing up in a input (since they're single line controls), but I can file an enhancement for that.

<span class="quote">&gt; 
&gt; &gt; LayoutTests/accessibility/mac/selection-boundary-userinfo.html:30
&gt; &gt; +                    shouldBe(&quot;results[0]&quot;, &quot;AXTextStateChangeTypeSelectionMove&quot;);
&gt; 
&gt; looks like this file has some tabs in it</span >

I'll fix that.</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>