summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGLineElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGLineElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGLineElement.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGLineElement.cpp b/Source/WebCore/svg/SVGLineElement.cpp
index cfe43da..2e435c5 100644
--- a/Source/WebCore/svg/SVGLineElement.cpp
+++ b/Source/WebCore/svg/SVGLineElement.cpp
@@ -138,6 +138,23 @@ void SVGLineElement::synchronizeProperty(const QualifiedName& attrName)
SVGTests::synchronizeProperties(this, attrName);
}
+AttributeToPropertyTypeMap& SVGLineElement::attributeToPropertyTypeMap()
+{
+ DEFINE_STATIC_LOCAL(AttributeToPropertyTypeMap, s_attributeToPropertyTypeMap, ());
+ return s_attributeToPropertyTypeMap;
+}
+
+void SVGLineElement::fillAttributeToPropertyTypeMap()
+{
+ AttributeToPropertyTypeMap& attributeToPropertyTypeMap = this->attributeToPropertyTypeMap();
+
+ SVGStyledTransformableElement::fillPassedAttributeToPropertyTypeMap(attributeToPropertyTypeMap);
+ attributeToPropertyTypeMap.set(SVGNames::x1Attr, AnimatedLength);
+ attributeToPropertyTypeMap.set(SVGNames::y1Attr, AnimatedLength);
+ attributeToPropertyTypeMap.set(SVGNames::x2Attr, AnimatedLength);
+ attributeToPropertyTypeMap.set(SVGNames::y2Attr, AnimatedLength);
+}
+
void SVGLineElement::toPathData(Path& path) const
{
ASSERT(path.isEmpty());