<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Use _NSScrollingPredominantAxisFilter for wheel event filtering on Mac"
   href="https://bugs.webkit.org/show_bug.cgi?id=147320#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Use _NSScrollingPredominantAxisFilter for wheel event filtering on Mac"
   href="https://bugs.webkit.org/show_bug.cgi?id=147320">bug 147320</a>
              from <span class="vcard"><a class="email" href="mailto:wenson_hsieh&#64;apple.com" title="Wenson Hsieh &lt;wenson_hsieh&#64;apple.com&gt;"> <span class="fn">Wenson Hsieh</span></a>
</span></b>
        <pre>Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=259483&amp;action=diff" name="attach_259483" title="Patch">attachment 259483</a> <a href="attachment.cgi?id=259483&amp;action=edit" title="Patch">[details]</a></span>
Patch

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

Thanks for the review! I just put up a v2 that addresses all of the points.

<span class="quote">&gt;&gt; Source/WebCore/page/WheelEventDeltaFilter.cpp:34
&gt;&gt; +    : m_currentFilteredDelta(0, 0)
&gt; 
&gt; No need to initialize FloatSize.</span >

Removed.

<span class="quote">&gt;&gt; Source/WebCore/page/WheelEventDeltaFilter.cpp:44
&gt;&gt; +    , m_deltaTracker(WheelEventDeltaTracker())
&gt; 
&gt; No need to explicitly call zero-argument constructor.</span >

Removed.

<span class="quote">&gt;&gt; Source/WebCore/page/WheelEventDeltaFilter.h:50
&gt;&gt; +class WheelEventDeltaFilterPlatformInvariant final : public WheelEventDeltaFilter {
&gt; 
&gt; &quot;PlatformInvariant&quot; seems like naming overkill. Maybe BasicWheelEventDeltaFilter</span >

Renamed to BasicWheelEventDeltaFilter.

<span class="quote">&gt;&gt; Source/WebCore/page/WheelEventDeltaFilter.h:60
&gt;&gt; +    WheelEventDeltaTracker m_deltaTracker;
&gt; 
&gt; Why does WheelEventDeltaTracker exist independently from this class? Can it just be merged into this?</span >

Good point -- it's not being used outside of this context anywhere else in WebKit. Done!

<span class="quote">&gt;&gt; Source/WebCore/page/mac/WheelEventDeltaFilterMac.mm:31
&gt;&gt; +#import &lt;AppKit/NSScrollingInputFilter_Private.h&gt;
&gt; 
&gt; This will need some SPI header stuff.</span >

Added NSScrollingInputFilterSPI.h.

<span class="quote">&gt;&gt; Source/WebCore/page/mac/WheelEventDeltaFilterMac.mm:83
&gt;&gt; +}
&gt; 
&gt; These could all be inline.</span >

Fixed.

<span class="quote">&gt;&gt; Source/WebKit2/WebProcess/WebPage/EventDispatcher.cpp:66
&gt;&gt; +#endif
&gt; 
&gt; Shame to see all this here. Maybe add static WheelEventDeltaFilter::create() which is implemented per-platform.</span >

Sounds good. Fixed.</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>