diff options
Diffstat (limited to 'Source/WebCore/svg/SVGForeignObjectElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGForeignObjectElement.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGForeignObjectElement.cpp b/Source/WebCore/svg/SVGForeignObjectElement.cpp index 6b5cd41..f2175ac 100644 --- a/Source/WebCore/svg/SVGForeignObjectElement.cpp +++ b/Source/WebCore/svg/SVGForeignObjectElement.cpp @@ -137,6 +137,24 @@ void SVGForeignObjectElement::synchronizeProperty(const QualifiedName& attrName) SVGTests::synchronizeProperties(this, attrName); } +AttributeToPropertyTypeMap& SVGForeignObjectElement::attributeToPropertyTypeMap() +{ + DEFINE_STATIC_LOCAL(AttributeToPropertyTypeMap, s_attributeToPropertyTypeMap, ()); + return s_attributeToPropertyTypeMap; +} + +void SVGForeignObjectElement::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(XLinkNames::hrefAttr, AnimatedString); +} + RenderObject* SVGForeignObjectElement::createRenderer(RenderArena* arena, RenderStyle*) { return new (arena) RenderSVGForeignObject(this); |