summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/platform/geometry/FloatSize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/geometry/FloatSize.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/platform/geometry/FloatSize.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/geometry/FloatSize.cpp b/chromium/third_party/WebKit/Source/platform/geometry/FloatSize.cpp
index e3da8beff0d..e033b78392b 100644
--- a/chromium/third_party/WebKit/Source/platform/geometry/FloatSize.cpp
+++ b/chromium/third_party/WebKit/Source/platform/geometry/FloatSize.cpp
@@ -37,11 +37,9 @@ using namespace std;
namespace WebCore {
-FloatSize::FloatSize(const IntSize& size) : m_width(size.width()), m_height(size.height())
-{
-}
-
-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())
{
}