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

Unified Diff: Source/core/svg/SVGSVGElement.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/SVGPolylineElement.idl ('k') | Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGSVGElement.h
diff --git a/Source/core/svg/SVGSVGElement.h b/Source/core/svg/SVGSVGElement.h
index 94e0b9b0c409e27d79d2ca08becbc14bac5eb437..773074ec52cb01f3253856463688a0ea69a59a88 100644
--- a/Source/core/svg/SVGSVGElement.h
+++ b/Source/core/svg/SVGSVGElement.h
@@ -28,6 +28,7 @@
#include "core/svg/SVGFitToViewBox.h"
#include "core/svg/SVGGraphicsElement.h"
#include "core/svg/SVGLengthTearOff.h"
+#include "core/svg/SVGPointTearOff.h"
#include "core/svg/SVGZoomAndPan.h"
namespace WebCore {
@@ -81,11 +82,9 @@ public:
float currentScale() const;
void setCurrentScale(float scale);
- SVGPoint& currentTranslate() { return m_translation; }
+ FloatPoint currentTranslate() { return m_translation->value(); }
void setCurrentTranslate(const FloatPoint&);
-
- // Only used from the bindings.
- void updateCurrentTranslate();
+ PassRefPtr<SVGPointTearOff> currentTranslateFromJavascript();
SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); }
@@ -110,7 +109,7 @@ public:
static float createSVGNumber();
static PassRefPtr<SVGLengthTearOff> createSVGLength();
static SVGAngle createSVGAngle();
- static SVGPoint createSVGPoint();
+ static PassRefPtr<SVGPointTearOff> createSVGPoint();
static SVGMatrix createSVGMatrix();
static PassRefPtr<SVGRectTearOff> createSVGRect();
static SVGTransform createSVGTransform();
@@ -156,6 +155,8 @@ private:
void inheritViewAttributes(SVGViewElement*);
+ void updateCurrentTranslate();
+
enum CollectIntersectionOrEnclosure {
CollectIntersectionList,
CollectEnclosureList
@@ -177,8 +178,10 @@ private:
bool m_useCurrentView;
SVGZoomAndPanType m_zoomAndPan;
RefPtr<SMILTimeContainer> m_timeContainer;
- SVGPoint m_translation;
+ RefPtr<SVGPoint> m_translation;
RefPtr<SVGViewSpec> m_viewSpec;
+
+ friend class SVGCurrentTranslateTearOff;
};
inline bool isSVGSVGElement(const Node& node)
« no previous file with comments | « Source/core/svg/SVGPolylineElement.idl ('k') | Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698