Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Unified Diff: Source/core/svg/SVGPolyElement.cpp

Issue 55893002: <animate> not working on SVG Polygons. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGPolyElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/svg/SVGPolyElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698