| Index: third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| index d65a378887c3fa87b332ce1d6a6c3683e3ff56a3..4f91e849eef4b3acfd658cbdf531f36dffca39a0 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| @@ -30,37 +30,13 @@
|
|
|
| namespace blink {
|
|
|
| -class SVGAnimatedPathLength final : public SVGAnimatedNumber {
|
| - public:
|
| - static SVGAnimatedPathLength* create(SVGPathElement* contextElement) {
|
| - return new SVGAnimatedPathLength(contextElement);
|
| - }
|
| -
|
| - SVGParsingError setBaseValueAsString(const String& value) override {
|
| - SVGParsingError parseStatus =
|
| - SVGAnimatedNumber::setBaseValueAsString(value);
|
| - if (parseStatus == SVGParseStatus::NoError && baseValue()->value() < 0)
|
| - parseStatus = SVGParseStatus::NegativeValue;
|
| - return parseStatus;
|
| - }
|
| -
|
| - private:
|
| - explicit SVGAnimatedPathLength(SVGPathElement* contextElement)
|
| - : SVGAnimatedNumber(contextElement,
|
| - SVGNames::pathLengthAttr,
|
| - SVGNumber::create()) {}
|
| -};
|
| -
|
| inline SVGPathElement::SVGPathElement(Document& document)
|
| : SVGGeometryElement(SVGNames::pathTag, document),
|
| - m_pathLength(SVGAnimatedPathLength::create(this)),
|
| m_path(SVGAnimatedPath::create(this, SVGNames::dAttr, CSSPropertyD)) {
|
| - addToPropertyMap(m_pathLength);
|
| addToPropertyMap(m_path);
|
| }
|
|
|
| DEFINE_TRACE(SVGPathElement) {
|
| - visitor->trace(m_pathLength);
|
| visitor->trace(m_path);
|
| SVGGeometryElement::trace(visitor);
|
| }
|
|
|