diff options
Diffstat (limited to 'Source/WebCore/svg/SVGViewElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGViewElement.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGViewElement.cpp b/Source/WebCore/svg/SVGViewElement.cpp index ee3c8d1..2dcf674 100644 --- a/Source/WebCore/svg/SVGViewElement.cpp +++ b/Source/WebCore/svg/SVGViewElement.cpp @@ -80,6 +80,21 @@ void SVGViewElement::synchronizeProperty(const QualifiedName& attrName) } } +AttributeToPropertyTypeMap& SVGViewElement::attributeToPropertyTypeMap() +{ + DEFINE_STATIC_LOCAL(AttributeToPropertyTypeMap, s_attributeToPropertyTypeMap, ()); + return s_attributeToPropertyTypeMap; +} + +void SVGViewElement::fillAttributeToPropertyTypeMap() +{ + AttributeToPropertyTypeMap& attributeToPropertyTypeMap = this->attributeToPropertyTypeMap(); + + SVGStyledElement::fillPassedAttributeToPropertyTypeMap(attributeToPropertyTypeMap); + attributeToPropertyTypeMap.set(SVGNames::viewBoxAttr, AnimatedRect); + attributeToPropertyTypeMap.set(SVGNames::preserveAspectRatioAttr, AnimatedPreserveAspectRatio); +} + } #endif // ENABLE(SVG) |