Index: Source/platform/geometry/FloatPoint.cpp |
diff --git a/Source/platform/geometry/FloatPoint.cpp b/Source/platform/geometry/FloatPoint.cpp |
index 264d45872ba651ff2e6dcbf433a95e901ec49470..3e8d860942c4cda52df05e6d4a88aa3e581b6ba9 100644 |
--- a/Source/platform/geometry/FloatPoint.cpp |
+++ b/Source/platform/geometry/FloatPoint.cpp |
@@ -46,7 +46,9 @@ FloatPoint::FloatPoint(const IntPoint& p) : m_x(p.x()), m_y(p.y()) |
{ |
} |
-FloatPoint::FloatPoint(const LayoutPoint& p) : m_x(p.x()), m_y(p.y()) |
+FloatPoint::FloatPoint(const LayoutPoint& p) |
+ : m_x(p.x().toFloat()) |
+ , m_y(p.y().toFloat()) |
{ |
} |