Index: third_party/WebKit/Source/core/svg/SVGGeometryElement.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGGeometryElement.h b/third_party/WebKit/Source/core/svg/SVGGeometryElement.h |
index dc2c4a1d80f26c96bf5b99aa5bb4aa96a39eebfa..96b8ef34f052ed2423efc375ff8fe06889e6d097 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGGeometryElement.h |
+++ b/third_party/WebKit/Source/core/svg/SVGGeometryElement.h |
@@ -31,6 +31,7 @@ |
#ifndef SVGGeometryElement_h |
#define SVGGeometryElement_h |
+#include "core/svg/SVGAnimatedNumber.h" |
#include "core/svg/SVGGraphicsElement.h" |
namespace blink { |
@@ -48,10 +49,13 @@ class SVGGeometryElement : public SVGGraphicsElement { |
void toClipPath(Path&) const; |
+ SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); } |
fs
2016/11/24 11:57:59
I think we should hook this up to rendering too. t
Shanmuga Pandi
2016/11/28 10:14:47
Done.
|
LayoutObject* createLayoutObject(const ComputedStyle&) override; |
virtual float getTotalLength(); |
virtual SVGPointTearOff* getPointAtLength(float distance); |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
protected: |
SVGGeometryElement(const QualifiedName&, |
Document&, |
@@ -59,6 +63,8 @@ class SVGGeometryElement : public SVGGraphicsElement { |
private: |
bool isSVGGeometryElement() const final { return true; } |
+ |
+ Member<SVGAnimatedNumber> m_pathLength; |
}; |
inline bool isSVGGeometryElement(const SVGElement& element) { |