Index: Source/core/svg/SVGCircleElement.cpp |
diff --git a/Source/core/svg/SVGCircleElement.cpp b/Source/core/svg/SVGCircleElement.cpp |
index 7e8719adeee31439b7de3dfb3a8f4271bb63056b..16ab4da71701c0990a2f316874df6cb1f7183733 100644 |
--- a/Source/core/svg/SVGCircleElement.cpp |
+++ b/Source/core/svg/SVGCircleElement.cpp |
@@ -31,9 +31,9 @@ namespace WebCore { |
inline SVGCircleElement::SVGCircleElement(Document& document) |
: SVGGeometryElement(SVGNames::circleTag, document) |
- , m_cx(SVGAnimatedLength::create(this, SVGNames::cxAttr, SVGLength::create(LengthModeWidth))) |
- , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(LengthModeHeight))) |
- , m_r(SVGAnimatedLength::create(this, SVGNames::rAttr, SVGLength::create(LengthModeOther))) |
+ , m_cx(SVGAnimatedLength::create(this, SVGNames::cxAttr, SVGLength::create(LengthModeWidth), AllowNegativeLengths)) |
+ , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(LengthModeHeight), AllowNegativeLengths)) |
+ , m_r(SVGAnimatedLength::create(this, SVGNames::rAttr, SVGLength::create(LengthModeOther), ForbidNegativeLengths)) |
{ |
ScriptWrappable::init(this); |
@@ -65,11 +65,11 @@ void SVGCircleElement::parseAttribute(const QualifiedName& name, const AtomicStr |
if (!isSupportedAttribute(name)) |
SVGGeometryElement::parseAttribute(name, value); |
else if (name == SVGNames::cxAttr) |
- m_cx->setBaseValueAsString(value, AllowNegativeLengths, parseError); |
+ m_cx->setBaseValueAsString(value, parseError); |
else if (name == SVGNames::cyAttr) |
- m_cy->setBaseValueAsString(value, AllowNegativeLengths, parseError); |
+ m_cy->setBaseValueAsString(value, parseError); |
else if (name == SVGNames::rAttr) |
- m_r->setBaseValueAsString(value, ForbidNegativeLengths, parseError); |
+ m_r->setBaseValueAsString(value, parseError); |
else |
ASSERT_NOT_REACHED(); |