| Index: Source/platform/geometry/FloatSize.h
|
| diff --git a/Source/platform/geometry/FloatSize.h b/Source/platform/geometry/FloatSize.h
|
| index 1d73c75d5ac9bd0b66ac1289fdb46fef8c631960..64f76663eec3687897e1434b7894b645acb63b86 100644
|
| --- a/Source/platform/geometry/FloatSize.h
|
| +++ b/Source/platform/geometry/FloatSize.h
|
| @@ -176,22 +176,22 @@ inline bool operator!=(const FloatSize& a, const FloatSize& b)
|
|
|
| inline IntSize roundedIntSize(const FloatSize& p)
|
| {
|
| - return IntSize(clampToInteger(roundf(p.width())), clampToInteger(roundf(p.height())));
|
| + return IntSize(clampTo<int>(roundf(p.width())), clampTo<int>(roundf(p.height())));
|
| }
|
|
|
| inline IntSize flooredIntSize(const FloatSize& p)
|
| {
|
| - return IntSize(clampToInteger(floorf(p.width())), clampToInteger(floorf(p.height())));
|
| + return IntSize(clampTo<int>(floorf(p.width())), clampTo<int>(floorf(p.height())));
|
| }
|
|
|
| inline IntSize expandedIntSize(const FloatSize& p)
|
| {
|
| - return IntSize(clampToInteger(ceilf(p.width())), clampToInteger(ceilf(p.height())));
|
| + return IntSize(clampTo<int>(ceilf(p.width())), clampTo<int>(ceilf(p.height())));
|
| }
|
|
|
| inline IntPoint flooredIntPoint(const FloatSize& p)
|
| {
|
| - return IntPoint(clampToInteger(floorf(p.width())), clampToInteger(floorf(p.height())));
|
| + return IntPoint(clampTo<int>(floorf(p.width())), clampTo<int>(floorf(p.height())));
|
| }
|
|
|
| } // namespace blink
|
|
|