<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Support TouchBar in WebKit"
   href="https://bugs.webkit.org/show_bug.cgi?id=164437#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Support TouchBar in WebKit"
   href="https://bugs.webkit.org/show_bug.cgi?id=164437">bug 164437</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=164437#c3">comment #3</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=293959&amp;action=diff" name="attach_293959" title="Patch">attachment 293959</a> <a href="attachment.cgi?id=293959&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=293959&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=293959&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:176
&gt; &gt; +#if HAVE(TOUCH_BAR)
&gt; 
&gt; I think this would look less ugly as its own class extension (you can have
&gt; as many as you want!) but either way is fine.
&gt; </span >

Good point. Fixed!

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:4573
&gt; &gt; +    return NO;
&gt; 
&gt; If HAVE(TOUCH_BAR) is true, you return twice?
&gt; </span >

Yeah, the compiler didn't complain, but I fixed it.

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/API/mac/WKView.mm:1505
&gt; &gt; +    return NO;
&gt; 
&gt; And here.
&gt; </span >

Fixed.

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm:971
&gt; &gt; +            NSTextAlignment textAlignment;
&gt; &gt; +            switch (editorState.postLayoutData().textAlignment) {
&gt; &gt; +            case NoAlignment:
&gt; &gt; +                textAlignment = NSTextAlignmentNatural;
&gt; &gt; +                break;
&gt; 
&gt; Should factor this out. Maybe we already have one?
&gt; </span >

I don't believe it exists anywhere already. This will be a good follow-up.

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm:1111
&gt; &gt; +    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), this, (__bridge CFStringRef)NSTouchBarDidExitCustomization, 0);
&gt; 
&gt; __bridge? In non-ARC code?
&gt; </span >

Good point. It's been bothering me that this uses CFNotificationCenter instead of NSNotificationCenter, so I have changed it to use NSNotificationCenter.

<span class="quote">&gt; &gt; Source/WebKit/mac/WebView/WebView.mm:5136
&gt; &gt; +#if HAVE(TOUCH_BAR)
&gt; 
&gt; Why not around the whole thing?
&gt; </span >

Fixed.

<span class="quote">&gt; &gt; Source/WebKit/mac/WebView/WebView.mm:6865
&gt; &gt; +    NSRange resultRange = [nsResult range];
&gt; 
&gt; Dots.
&gt; </span >

Fixed.

<span class="quote">&gt; &gt; Source/WebKit/mac/WebView/WebView.mm:6868
&gt; &gt; +    result.replacement = [nsResult replacementString];
&gt; 
&gt; Dots.
&gt; </span >

Fixed.

<span class="quote">&gt; &gt; Source/WebKit/mac/WebView/WebView.mm:9465
&gt; &gt; +                NSTextAlignment textAlignment;
&gt; &gt; +                switch (style-&gt;textAlign()) {
&gt; &gt; +                case RIGHT:
&gt; &gt; +                case WEBKIT_RIGHT:
&gt; &gt; +                    textAlignment = NSTextAlignmentRight;
&gt; 
&gt; And again.</span >

Will do in follow-up.</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>