<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [UNIX] Add support for windowless NPAPI plugins with no UI in non X11 platforms"
   href="https://bugs.webkit.org/show_bug.cgi?id=151992#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [UNIX] Add support for windowless NPAPI plugins with no UI in non X11 platforms"
   href="https://bugs.webkit.org/show_bug.cgi?id=151992">bug 151992</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=151992#c10">comment #10</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=270480&amp;action=diff" name="attach_270480" title="Updated patch">attachment 270480</a> <a href="attachment.cgi?id=270480&amp;action=edit" title="Updated patch">[details]</a></span>
&gt; Updated patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=270480&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=270480&amp;action=review</a>
&gt; 
&gt; While I’m not a platform expert I think I can review.</span >

Thanks!

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:534
&gt; &gt; +            const auto&amp; display = WebCore::PlatformDisplay::sharedDisplay();
&gt; 
&gt; I don’t think the const here is needed or helpful.</span >

Ok, removed.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:537
&gt; &gt; +            *reinterpret_cast&lt;Display**&gt;(value) = downcast&lt;PlatformDisplayX11&gt;(display).native();
&gt; 
&gt; Strange that the WebCore prefix is not needed here but is needed on the line
&gt; above.</span >

It's not needed, there's a using namespace in this file.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.h:56
&gt; &gt;  class NetscapePluginStream;
&gt; &gt; -    
&gt; &gt; +#if PLUGIN_ARCHITECTURE(X11)
&gt; &gt; +class NetscapePluginUnix;
&gt; &gt; +#endif
&gt; &gt;  class NetscapePlugin : public Plugin {
&gt; 
&gt; Please don’t delete the blank line here that separates the forward
&gt; declarations from the class definition. Not clear that we need to put #if
&gt; around a forward declaration. If we do, then please put it in a separate
&gt; paragraph with spaces above and below the #if/#endif</span >

I don't think we need ifdefs.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.h:31
&gt; &gt; +#include &lt;WebCore/GraphicsContext.h&gt;
&gt; 
&gt; I think we could use forward declarations for GraphicsContext and IntRect in
&gt; this file rather than including the header, which is typically better.</span >

Ok.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.h:31
&gt; &gt; +#if PLUGIN_ARCHITECTURE(X11)
&gt; &gt; +#include &quot;NetscapePluginUnix.h&quot;
&gt; 
&gt; We normally put a blank line here between the #if and the #include.</span >

Ok.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.h:38
&gt; &gt; +class NetscapePluginX11 final: public NetscapePluginUnix {
&gt; 
&gt; We normally put a space after final before &quot;:&quot;.</span >

OK.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.h:46
&gt; &gt; +private:
&gt; 
&gt; We normally put a blank line here before private.</span >

Ok.</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>