summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGLength.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGLength.h')
-rw-r--r--WebCore/svg/SVGLength.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/WebCore/svg/SVGLength.h b/WebCore/svg/SVGLength.h
index ccd22ee..a256ed3 100644
--- a/WebCore/svg/SVGLength.h
+++ b/WebCore/svg/SVGLength.h
@@ -23,7 +23,7 @@
#if ENABLE(SVG)
#include "ExceptionCode.h"
-#include <wtf/text/WTFString.h>
+#include "SVGPropertyTraits.h"
namespace WebCore {
@@ -118,6 +118,13 @@ private:
unsigned int m_unit;
};
+template<>
+struct SVGPropertyTraits<SVGLength> {
+ static SVGLength initialValue() { return SVGLength(); }
+ static String toString(const SVGLength& type) { return type.valueAsString(); }
+};
+
+
} // namespace WebCore
#endif // ENABLE(SVG)