diff options
Diffstat (limited to 'Source/WebCore/svg/SVGMarkerElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGMarkerElement.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGMarkerElement.cpp b/Source/WebCore/svg/SVGMarkerElement.cpp index 3174711..c255a9b 100644 --- a/Source/WebCore/svg/SVGMarkerElement.cpp +++ b/Source/WebCore/svg/SVGMarkerElement.cpp @@ -183,6 +183,26 @@ void SVGMarkerElement::synchronizeProperty(const QualifiedName& attrName) } } +AttributeToPropertyTypeMap& SVGMarkerElement::attributeToPropertyTypeMap() +{ + DEFINE_STATIC_LOCAL(AttributeToPropertyTypeMap, s_attributeToPropertyTypeMap, ()); + return s_attributeToPropertyTypeMap; +} + +void SVGMarkerElement::fillAttributeToPropertyTypeMap() +{ + AttributeToPropertyTypeMap& attributeToPropertyTypeMap = this->attributeToPropertyTypeMap(); + + SVGStyledElement::fillPassedAttributeToPropertyTypeMap(attributeToPropertyTypeMap); + attributeToPropertyTypeMap.set(SVGNames::refXAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::refYAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::markerWidthAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::markerHeightAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::markerUnitsAttr, AnimatedEnumeration); + attributeToPropertyTypeMap.set(SVGNames::orientAttr, AnimatedAngle); + attributeToPropertyTypeMap.set(SVGNames::viewBoxAttr, AnimatedRect); +} + void SVGMarkerElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) { SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); |