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

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

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline Created 6 years, 11 months 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/SVGPointTearOff.cpp ('k') | Source/core/svg/SVGPolyElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPolyElement.h
diff --git a/Source/core/svg/SVGPolyElement.h b/Source/core/svg/SVGPolyElement.h
index 87fe55c0021f78d59dc2012d431ae55c20a92d76..28e6f03011f73c573c0dd1fe3e7ab7209fd914cf 100644
--- a/Source/core/svg/SVGPolyElement.h
+++ b/Source/core/svg/SVGPolyElement.h
@@ -23,19 +23,17 @@
#include "SVGNames.h"
#include "core/svg/SVGAnimatedBoolean.h"
+#include "core/svg/SVGAnimatedPointList.h"
#include "core/svg/SVGGeometryElement.h"
-#include "core/svg/SVGPointList.h"
namespace WebCore {
class SVGPolyElement : public SVGGeometryElement {
public:
- SVGListPropertyTearOff<SVGPointList>* points();
- SVGListPropertyTearOff<SVGPointList>* animatedPoints();
+ SVGAnimatedPointList* points() { return m_points.get(); }
- SVGPointList& pointsCurrentValue();
-
- static const SVGPropertyInfo* pointsPropertyInfo();
+ PassRefPtr<SVGPointListTearOff> pointsFromJavascript() { return m_points->baseVal(); }
+ PassRefPtr<SVGPointListTearOff> animatedPoints() { return m_points->animVal(); }
protected:
SVGPolyElement(const QualifiedName&, Document&);
@@ -49,13 +47,9 @@ private:
virtual bool supportsMarkers() const OVERRIDE FINAL { return true; }
- // Custom 'points' property
- static void synchronizePoints(SVGElement* contextElement);
- static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElement* contextElement);
-
- mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points;
-
private:
+ RefPtr<SVGAnimatedPointList> m_points;
+
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement)
END_DECLARE_ANIMATED_PROPERTIES
};
« no previous file with comments | « Source/core/svg/SVGPointTearOff.cpp ('k') | Source/core/svg/SVGPolyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698