| Index: Source/platform/geometry/FloatPoint.h
|
| diff --git a/Source/platform/geometry/FloatPoint.h b/Source/platform/geometry/FloatPoint.h
|
| index 445f60262b9cc297b52d4c30461c0dd484991a4e..2790757969a2f705f5b97cca4f790014d8aa53e9 100644
|
| --- a/Source/platform/geometry/FloatPoint.h
|
| +++ b/Source/platform/geometry/FloatPoint.h
|
| @@ -215,22 +215,22 @@ inline float operator*(const FloatPoint& a, const FloatPoint& b)
|
|
|
| inline IntPoint roundedIntPoint(const FloatPoint& p)
|
| {
|
| - return IntPoint(clampToInteger(roundf(p.x())), clampToInteger(roundf(p.y())));
|
| + return IntPoint(clampTo<int>(roundf(p.x())), clampTo<int>(roundf(p.y())));
|
| }
|
|
|
| inline IntPoint flooredIntPoint(const FloatPoint& p)
|
| {
|
| - return IntPoint(clampToInteger(floorf(p.x())), clampToInteger(floorf(p.y())));
|
| + return IntPoint(clampTo<int>(floorf(p.x())), clampTo<int>(floorf(p.y())));
|
| }
|
|
|
| inline IntPoint ceiledIntPoint(const FloatPoint& p)
|
| {
|
| - return IntPoint(clampToInteger(ceilf(p.x())), clampToInteger(ceilf(p.y())));
|
| + return IntPoint(clampTo<int>(ceilf(p.x())), clampTo<int>(ceilf(p.y())));
|
| }
|
|
|
| inline IntSize flooredIntSize(const FloatPoint& p)
|
| {
|
| - return IntSize(clampToInteger(floorf(p.x())), clampToInteger(floorf(p.y())));
|
| + return IntSize(clampTo<int>(floorf(p.x())), clampTo<int>(floorf(p.y())));
|
| }
|
|
|
| inline FloatSize toFloatSize(const FloatPoint& a)
|
|
|