| Index: Source/core/svg/SVGMaskElement.cpp
|
| diff --git a/Source/core/svg/SVGMaskElement.cpp b/Source/core/svg/SVGMaskElement.cpp
|
| index f53976fc8f22846605d51c4a2a697f8f8cd599ef..253f4d7bf06d590b654724923fc60e12edc52875 100644
|
| --- a/Source/core/svg/SVGMaskElement.cpp
|
| +++ b/Source/core/svg/SVGMaskElement.cpp
|
| @@ -33,10 +33,10 @@ namespace WebCore {
|
| inline SVGMaskElement::SVGMaskElement(Document& document)
|
| : SVGElement(SVGNames::maskTag, document)
|
| , SVGTests(this)
|
| - , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(LengthModeWidth)))
|
| - , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(LengthModeHeight)))
|
| - , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(LengthModeWidth)))
|
| - , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::create(LengthModeHeight)))
|
| + , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(LengthModeWidth), AllowNegativeLengths))
|
| + , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(LengthModeHeight), AllowNegativeLengths))
|
| + , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(LengthModeWidth), ForbidNegativeLengths))
|
| + , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::create(LengthModeHeight), ForbidNegativeLengths))
|
| , m_maskUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::maskUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX))
|
| , m_maskContentUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::maskContentUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE))
|
| {
|
| @@ -89,13 +89,13 @@ void SVGMaskElement::parseAttribute(const QualifiedName& name, const AtomicStrin
|
| else if (name == SVGNames::maskContentUnitsAttr)
|
| m_maskContentUnits->setBaseValueAsString(value, parseError);
|
| else if (name == SVGNames::xAttr)
|
| - m_x->setBaseValueAsString(value, AllowNegativeLengths, parseError);
|
| + m_x->setBaseValueAsString(value, parseError);
|
| else if (name == SVGNames::yAttr)
|
| - m_y->setBaseValueAsString(value, AllowNegativeLengths, parseError);
|
| + m_y->setBaseValueAsString(value, parseError);
|
| else if (name == SVGNames::widthAttr)
|
| - m_width->setBaseValueAsString(value, ForbidNegativeLengths, parseError);
|
| + m_width->setBaseValueAsString(value, parseError);
|
| else if (name == SVGNames::heightAttr)
|
| - m_height->setBaseValueAsString(value, ForbidNegativeLengths, parseError);
|
| + m_height->setBaseValueAsString(value, parseError);
|
| else if (SVGTests::parseAttribute(name, value)) {
|
| } else
|
| ASSERT_NOT_REACHED();
|
|
|