Index: Source/platform/geometry/IntRect.cpp |
diff --git a/Source/platform/geometry/IntRect.cpp b/Source/platform/geometry/IntRect.cpp |
index 5cd0abbfc4d658ea51ae9359d0fa98a80002f38d..9249e5eb1b8bdd1536c3c30f72d60d340bb62f52 100644 |
--- a/Source/platform/geometry/IntRect.cpp |
+++ b/Source/platform/geometry/IntRect.cpp |
@@ -35,8 +35,8 @@ |
namespace blink { |
IntRect::IntRect(const FloatRect& r) |
- : m_location(clampToInteger(r.x()), clampToInteger(r.y())) |
- , m_size(clampToInteger(r.width()), clampToInteger(r.height())) |
+ : m_location(clampTo<int>(r.x()), clampTo<int>(r.y())) |
+ , m_size(clampTo<int>(r.width()), clampTo<int>(r.height())) |
{ |
} |