diff options
author | Shimeng (Simon) Wang <swang@google.com> | 2010-12-07 17:22:45 -0800 |
---|---|---|
committer | Shimeng (Simon) Wang <swang@google.com> | 2010-12-22 14:15:40 -0800 |
commit | 4576aa36e9a9671459299c7963ac95aa94beaea9 (patch) | |
tree | 3863574e050f168c0126ecb47c83319fab0972d8 /WebCore/svg/SVGLength.h | |
parent | 55323ac613cc31553107b68603cb627264d22bb0 (diff) | |
download | external_webkit-4576aa36e9a9671459299c7963ac95aa94beaea9.zip external_webkit-4576aa36e9a9671459299c7963ac95aa94beaea9.tar.gz external_webkit-4576aa36e9a9671459299c7963ac95aa94beaea9.tar.bz2 |
Merge WebKit at r73109: Initial merge by git.
Change-Id: I61f1a66d9642e3d8405d3ac6ccab2a53421c75d8
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) |