diff options
Diffstat (limited to 'WebCore/svg/SVGLength.h')
-rw-r--r-- | WebCore/svg/SVGLength.h | 9 |
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) |