Index: Source/core/svg/SVGSVGElement.h |
diff --git a/Source/core/svg/SVGSVGElement.h b/Source/core/svg/SVGSVGElement.h |
index 181a5bbe4db3e714847d9f2420819a69d2d7e96e..5fd21d8fd2949250a199f60ead07e7f325472468 100644 |
--- a/Source/core/svg/SVGSVGElement.h |
+++ b/Source/core/svg/SVGSVGElement.h |
@@ -27,6 +27,7 @@ |
#include "core/svg/SVGAnimatedRect.h" |
#include "core/svg/SVGFitToViewBox.h" |
#include "core/svg/SVGGraphicsElement.h" |
+#include "core/svg/SVGLengthTearOff.h" |
#include "core/svg/SVGZoomAndPan.h" |
#include "wtf/WeakPtr.h" |
@@ -109,7 +110,7 @@ public: |
void deselectAll(); |
static float createSVGNumber(); |
- static SVGLength createSVGLength(); |
+ static PassRefPtr<SVGLengthTearOff> createSVGLength(); |
static SVGAngle createSVGAngle(); |
static SVGPoint createSVGPoint(); |
static SVGMatrix createSVGMatrix(); |
@@ -131,6 +132,11 @@ public: |
bool hasEmptyViewBox() const { return viewBoxCurrentValue().isValid() && viewBoxCurrentValue().isEmpty(); } |
+ SVGAnimatedLength* x() const { return m_x.get(); } |
+ SVGAnimatedLength* y() const { return m_y.get(); } |
+ SVGAnimatedLength* width() const { return m_width.get(); } |
+ SVGAnimatedLength* height() const { return m_height.get(); } |
+ |
private: |
explicit SVGSVGElement(Document&); |
virtual ~SVGSVGElement(); |
@@ -158,11 +164,11 @@ private: |
PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const SVGRect&, SVGElement*, CollectIntersectionOrEnclosure) const; |
+ RefPtr<SVGAnimatedLength> m_x; |
+ RefPtr<SVGAnimatedLength> m_y; |
+ RefPtr<SVGAnimatedLength> m_width; |
+ RefPtr<SVGAnimatedLength> m_height; |
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) |
- DECLARE_ANIMATED_LENGTH(X, x) |
- DECLARE_ANIMATED_LENGTH(Y, y) |
- DECLARE_ANIMATED_LENGTH(Width, width) |
- DECLARE_ANIMATED_LENGTH(Height, height) |
DECLARE_ANIMATED_RECT(ViewBox, viewBox) |
DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspectRatio) |
END_DECLARE_ANIMATED_PROPERTIES |