Index: Source/platform/geometry/LayoutSize.h |
diff --git a/Source/platform/geometry/LayoutSize.h b/Source/platform/geometry/LayoutSize.h |
index c950cf535102e968382ba618cd2751e40376812b..208b47dd47b80a7c3a6256ba4d798afd7bf4c7f1 100644 |
--- a/Source/platform/geometry/LayoutSize.h |
+++ b/Source/platform/geometry/LayoutSize.h |
@@ -61,7 +61,7 @@ public: |
bool isEmpty() const { return m_width.rawValue() <= 0 || m_height.rawValue() <= 0; } |
bool isZero() const { return !m_width && !m_height; } |
- float aspectRatio() const { return static_cast<float>(m_width) / static_cast<float>(m_height); } |
+ float aspectRatio() const { return m_width.toFloat() / m_height.toFloat(); } |
void expand(LayoutUnit width, LayoutUnit height) |
{ |