diff options
Diffstat (limited to 'WebCore/svg/properties/SVGPropertyTraits.h')
-rw-r--r-- | WebCore/svg/properties/SVGPropertyTraits.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/WebCore/svg/properties/SVGPropertyTraits.h b/WebCore/svg/properties/SVGPropertyTraits.h index 8d82a61..85bca7e 100644 --- a/WebCore/svg/properties/SVGPropertyTraits.h +++ b/WebCore/svg/properties/SVGPropertyTraits.h @@ -26,7 +26,10 @@ #include "SVGAngle.h" #include "SVGLength.h" #include "SVGLengthList.h" +#include "SVGNumberList.h" +#include "SVGPointList.h" #include "SVGPreserveAspectRatio.h" +#include "SVGStringList.h" #include <wtf/text/StringBuilder.h> namespace WebCore { @@ -79,6 +82,14 @@ struct SVGPropertyTraits<float> { }; template<> +struct SVGPropertyTraits<SVGNumberList> { + typedef float ListItemType; + + static SVGNumberList initialValue() { return SVGNumberList(); } + static String toString(const SVGNumberList& type) { return type.valueAsString(); } +}; + +template<> struct SVGPropertyTraits<SVGPreserveAspectRatio> { static SVGPreserveAspectRatio initialValue() { return SVGPreserveAspectRatio(); } static String toString(const SVGPreserveAspectRatio& type) { return type.valueAsString(); } @@ -108,6 +119,17 @@ struct SVGPropertyTraits<String> { static String toString(const String& type) { return type; } }; +template<> +struct SVGPropertyTraits<SVGStringList> { + typedef String ListItemType; +}; + +template<> +struct SVGPropertyTraits<SVGPointList> { + static SVGPointList initialValue() { return SVGPointList(); } + typedef FloatPoint ListItemType; +}; + } #endif |