Index: Source/core/svg/SVGPolyElement.cpp |
diff --git a/Source/core/svg/SVGPolyElement.cpp b/Source/core/svg/SVGPolyElement.cpp |
index a6eec9b2fd59e78664fefcca8d4b939c22e213a5..d3752f997cc6a668e480672e4d78bc3378b9855f 100644 |
--- a/Source/core/svg/SVGPolyElement.cpp |
+++ b/Source/core/svg/SVGPolyElement.cpp |
@@ -46,6 +46,17 @@ const SVGPropertyInfo* SVGPolyElement::pointsPropertyInfo() |
return s_propertyInfo; |
} |
+SVGPointList& SVGPolyElement::pointsCurrentValue() |
+{ |
+ SVGAnimatedProperty* wrapper = SVGAnimatedProperty::lookupWrapper<SVGPolyElement, SVGAnimatedPointList>(this, pointsPropertyInfo()); |
+ if (wrapper && wrapper->isAnimating()) { |
+ if (SVGListPropertyTearOff<SVGPointList>* ap = animatedPoints()) |
+ return ap->values(); |
+ } |
+ |
+ return m_points.value; |
+} |
+ |
// Animated property definitions |
DEFINE_ANIMATED_BOOLEAN(SVGPolyElement, SVGNames::externalResourcesRequiredAttr, ExternalResourcesRequired, externalResourcesRequired) |