diff options
Diffstat (limited to 'Source/WebCore/svg/SVGRectElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGRectElement.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGRectElement.cpp b/Source/WebCore/svg/SVGRectElement.cpp index d5db5b9..10c5743 100644 --- a/Source/WebCore/svg/SVGRectElement.cpp +++ b/Source/WebCore/svg/SVGRectElement.cpp @@ -161,6 +161,25 @@ void SVGRectElement::synchronizeProperty(const QualifiedName& attrName) SVGTests::synchronizeProperties(this, attrName); } +AttributeToPropertyTypeMap& SVGRectElement::attributeToPropertyTypeMap() +{ + DEFINE_STATIC_LOCAL(AttributeToPropertyTypeMap, s_attributeToPropertyTypeMap, ()); + return s_attributeToPropertyTypeMap; +} + +void SVGRectElement::fillAttributeToPropertyTypeMap() +{ + AttributeToPropertyTypeMap& attributeToPropertyTypeMap = this->attributeToPropertyTypeMap(); + + SVGStyledTransformableElement::fillPassedAttributeToPropertyTypeMap(attributeToPropertyTypeMap); + attributeToPropertyTypeMap.set(SVGNames::xAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::yAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::widthAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::heightAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::rxAttr, AnimatedLength); + attributeToPropertyTypeMap.set(SVGNames::ryAttr, AnimatedLength); +} + void SVGRectElement::toPathData(Path& path) const { ASSERT(path.isEmpty()); |