Index: Source/core/svg/SVGLengthContext.h |
diff --git a/Source/core/svg/SVGLengthContext.h b/Source/core/svg/SVGLengthContext.h |
index 758cb6d93988def38c597b93d4bed46187517be3..2dfb3d1bdc9c550bcc32b438682d237571648e59 100644 |
--- a/Source/core/svg/SVGLengthContext.h |
+++ b/Source/core/svg/SVGLengthContext.h |
@@ -21,6 +21,7 @@ |
#define SVGLengthContext_h |
#include "core/svg/SVGUnitTypes.h" |
+#include "platform/Length.h" |
#include "platform/geometry/FloatRect.h" |
namespace blink { |
@@ -64,6 +65,8 @@ public: |
static FloatPoint resolvePoint(const SVGElement*, SVGUnitTypes::SVGUnitType, PassRefPtrWillBeRawPtr<SVGLength> x, PassRefPtrWillBeRawPtr<SVGLength> y); |
static float resolveLength(const SVGElement*, SVGUnitTypes::SVGUnitType, PassRefPtrWillBeRawPtr<SVGLength>); |
+ float valueForLength(const Length&, SVGLengthMode = LengthModeOther); |
+ |
float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit, ExceptionState&) const; |
float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit, ExceptionState&) const; |