Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: Source/platform/geometry/FloatPoint.cpp

Issue 200023002: Making LayoutUnit conversions to Float type explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to trunk Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/LayoutUnit.h ('k') | Source/platform/geometry/FloatSize.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
{
}
« no previous file with comments | « Source/platform/LayoutUnit.h ('k') | Source/platform/geometry/FloatSize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698