Index: Source/platform/Length.cpp |
diff --git a/Source/platform/Length.cpp b/Source/platform/Length.cpp |
index 394a1c96e582fae509b23754d6469bc617b2de85..4cbfa597bdff5e53741895ca02da696b68daf3c4 100644 |
--- a/Source/platform/Length.cpp |
+++ b/Source/platform/Length.cpp |
@@ -232,10 +232,10 @@ void Length::decrementCalculatedRef() const |
calcHandles().decrementRef(calculationHandle()); |
} |
-float Length::nonNanCalculatedValue(int maxValue) const |
+float Length::nonNanCalculatedValue(LayoutUnit maxValue) const |
{ |
ASSERT(isCalculated()); |
- float result = calculationValue().evaluate(maxValue); |
+ float result = calculationValue().evaluate(maxValue.toFloat()); |
if (std::isnan(result)) |
return 0; |
return result; |