| Index: Source/core/platform/graphics/FloatPoint.cpp
|
| diff --git a/Source/core/platform/graphics/FloatPoint.cpp b/Source/core/platform/graphics/FloatPoint.cpp
|
| index 3c1e681fec7be629c8e9807d79b74151b208575f..8a38c898c8dcafae59b21949716e573dae699cf5 100644
|
| --- a/Source/core/platform/graphics/FloatPoint.cpp
|
| +++ b/Source/core/platform/graphics/FloatPoint.cpp
|
| @@ -27,8 +27,6 @@
|
| #include "config.h"
|
| #include "core/platform/graphics/FloatPoint.h"
|
|
|
| -#include <math.h>
|
| -#include <limits>
|
| #include "core/platform/FloatConversion.h"
|
| #include "core/platform/graphics/IntPoint.h"
|
| #include "core/platform/graphics/LayoutPoint.h"
|
| @@ -37,6 +35,10 @@
|
| #include "core/platform/graphics/transforms/AffineTransform.h"
|
| #include "core/platform/graphics/transforms/TransformationMatrix.h"
|
| #include "third_party/skia/include/core/SkPoint.h"
|
| +#include "wtf/MathExtras.h"
|
| +
|
| +#include <limits>
|
| +#include <math.h>
|
|
|
| namespace WebCore {
|
|
|
| @@ -105,6 +107,11 @@ FloatPoint FloatPoint::narrowPrecision(double x, double y)
|
| return FloatPoint(narrowPrecisionToFloat(x), narrowPrecisionToFloat(y));
|
| }
|
|
|
| +inline IntPoint roundedIntPoint(const FloatPoint& p)
|
| +{
|
| + return IntPoint(clampToInteger(roundf(p.x())), clampToInteger(roundf(p.y())));
|
| +}
|
| +
|
| float findSlope(const FloatPoint& p1, const FloatPoint& p2, float& c)
|
| {
|
| if (p2.x() == p1.x())
|
|
|