Unreviewed, fix build after r188860
[WebKit-https.git] / Source / WebCore / page / mac / WheelEventDeltaFilterMac.mm
index 4ef086f27d97721ebe46e5baa67a5e996deda2bf..1d1f5ed8b2dbba9841fc0906ef0afb2bb8be7c2d 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "config.h"
 #include "WheelEventDeltaFilterMac.h"
+#include "FloatPoint.h"
 
 #import "NSScrollingInputFilterSPI.h"
 #import <wtf/CurrentTime.h>
@@ -52,7 +53,7 @@ void WheelEventDeltaFilterMac::updateFromDelta(const FloatSize& delta)
 
     NSPoint filteredDeltaResult;
     NSPoint filteredVelocityResult;
-    [m_predominantAxisFilter filterInputDelta:CGPointMake(delta.width(), delta.height()) timestamp:monotonicallyIncreasingTime() - m_beginFilteringDeltasTime outputDelta:&filteredDeltaResult velocity:&filteredVelocityResult];
+    [m_predominantAxisFilter filterInputDelta:NSPoint(FloatPoint(delta.width(), delta.height())) timestamp:monotonicallyIncreasingTime() - m_beginFilteringDeltasTime outputDelta:&filteredDeltaResult velocity:&filteredVelocityResult];
     m_currentFilteredDelta = FloatSize(filteredDeltaResult.x, filteredDeltaResult.y);
 }