diff options
Diffstat (limited to 'Source/WebCore/svg/SVGCursorElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGCursorElement.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGCursorElement.cpp b/Source/WebCore/svg/SVGCursorElement.cpp index 0c6a5d9..c49f799 100644 --- a/Source/WebCore/svg/SVGCursorElement.cpp +++ b/Source/WebCore/svg/SVGCursorElement.cpp @@ -72,6 +72,20 @@ void SVGCursorElement::parseMappedAttribute(Attribute* attr) } } +AttributeToPropertyTypeMap& SVGCursorElement::attributeToPropertyTypeMap() +{ + DEFINE_STATIC_LOCAL(AttributeToPropertyTypeMap, s_attributeToPropertyTypeMap, ()); + return s_attributeToPropertyTypeMap; +} + +void SVGCursorElement::fillAttributeToPropertyTypeMap() +{ + AttributeToPropertyTypeMap& attributeToPropertyTypeMap = this->attributeToPropertyTypeMap(); + attributeToPropertyTypeMap.set(SVGNames::xAttr, AnimatedNumber); + attributeToPropertyTypeMap.set(SVGNames::yAttr, AnimatedNumber); + attributeToPropertyTypeMap.set(XLinkNames::hrefAttr, AnimatedString); +} + void SVGCursorElement::addClient(SVGElement* element) { m_clients.add(element); |