<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Make handleAcceptedCandidate a public function"
   href="https://bugs.webkit.org/show_bug.cgi?id=157763#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Make handleAcceptedCandidate a public function"
   href="https://bugs.webkit.org/show_bug.cgi?id=157763">bug 157763</a>
              from <span class="vcard"><a class="email" href="mailto:bdakin&#64;apple.com" title="Beth Dakin &lt;bdakin&#64;apple.com&gt;"> <span class="fn">Beth Dakin</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=157763#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=279057&amp;action=diff" name="attach_279057" title="Patch">attachment 279057</a> <a href="attachment.cgi?id=279057&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=279057&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=279057&amp;action=review</a>
&gt; 
&gt; Looks good to me, but I'm not a reviewer unfortunately.
&gt; 
&gt; &gt; Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm:1201
&gt; &gt;      [m_webView showCandidates:candidates forString:m_paragraphContextForCandidateRequest.get() inRect:rectForSelectionCandidates forSelectedRange:m_rangeForCandidates view:m_webView completionHandler:[weakEditor](NSTextCheckingResult *acceptedCandidate) {
&gt; 
&gt; Seems like weakEditor is no longer used.</span >

Removed it.

<span class="quote">&gt; 
&gt; &gt; Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm:1202
&gt; &gt; +        dispatch_async(dispatch_get_main_queue(), ^{ });
&gt; 
&gt; Why is this necessary? Can you pass nil as the completion handler (or,
&gt; failing that, an empty block)?
&gt; </span >

Nil does work.

<span class="quote">&gt; &gt; Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm:1224
&gt; &gt;                  [(WebHTMLView *)view _setSoftSpaceRange:softSpaceRange];
&gt; 
&gt; Looks like you could declare softSpaceRange only in the case where the
&gt; replacement ends in space.
&gt; 
&gt; Does this properly handle a case where a replacement ends in multiple spaces?</span >

The current behavior matches NSTextView, so in that sense it does properly handle multiple spaces.</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>