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

Unified Diff: Source/platform/Length.cpp

Issue 845313010: Allow Length::nonNanCalculatedValue to take a LayoutUnit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add reftest Created 5 years, 11 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
Index: Source/platform/Length.cpp
diff --git a/Source/platform/Length.cpp b/Source/platform/Length.cpp
index 394a1c96e582fae509b23754d6469bc617b2de85..50b539d9df913f89f45b1b2f10b2ebbed0acb5b5 100644
--- a/Source/platform/Length.cpp
+++ b/Source/platform/Length.cpp
@@ -232,7 +232,7 @@ void Length::decrementCalculatedRef() const
calcHandles().decrementRef(calculationHandle());
}
-float Length::nonNanCalculatedValue(int maxValue) const
+float Length::nonNanCalculatedValue(float maxValue) const
{
ASSERT(isCalculated());
float result = calculationValue().evaluate(maxValue);

Powered by Google App Engine
This is Rietveld 408576698