Index: third_party/WebKit/Source/platform/LengthFunctions.cpp |
diff --git a/third_party/WebKit/Source/platform/LengthFunctions.cpp b/third_party/WebKit/Source/platform/LengthFunctions.cpp |
index 8b4a68f0ced5e7da63cb9d207bdb9b31c1a35d65..0c5dcaa03cdadc347027c7c8073f001fc8928037 100644 |
--- a/third_party/WebKit/Source/platform/LengthFunctions.cpp |
+++ b/third_party/WebKit/Source/platform/LengthFunctions.cpp |
@@ -24,6 +24,7 @@ |
#include "platform/LengthFunctions.h" |
#include "platform/LayoutUnit.h" |
+#include "platform/LengthPoint.h" |
#include "platform/LengthSize.h" |
namespace blink { |
@@ -122,4 +123,9 @@ FloatSize floatSizeForLengthSize(const LengthSize& lengthSize, const FloatSize& |
return FloatSize(floatValueForLength(lengthSize.width(), boxSize.width()), floatValueForLength(lengthSize.height(), boxSize.height())); |
} |
+FloatPoint floatPointForLengthPoint(const LengthPoint& LengthPoint, const FloatSize& boxSize) |
+{ |
+ return FloatPoint(floatValueForLength(LengthPoint.x(), boxSize.width()), floatValueForLength(LengthPoint.y(), boxSize.height())); |
+} |
+ |
} // namespace blink |