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

Unified Diff: Source/platform/geometry/FloatSize.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/geometry/FloatPoint.cpp ('k') | Source/platform/geometry/LayoutSize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatSize.cpp
diff --git a/Source/platform/geometry/FloatSize.cpp b/Source/platform/geometry/FloatSize.cpp
index 324a7cb08112fb3f5ad948107129e2655addf793..e033b78392b6e2a4c135bdb9769dd45ff7f7addf 100644
--- a/Source/platform/geometry/FloatSize.cpp
+++ b/Source/platform/geometry/FloatSize.cpp
@@ -37,7 +37,9 @@ using namespace std;
namespace WebCore {
-FloatSize::FloatSize(const LayoutSize& size) : m_width(size.width()), m_height(size.height())
+FloatSize::FloatSize(const LayoutSize& size)
+ : m_width(size.width().toFloat())
+ , m_height(size.height().toFloat())
{
}
« no previous file with comments | « Source/platform/geometry/FloatPoint.cpp ('k') | Source/platform/geometry/LayoutSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698