| Index: Source/core/svg/SVGPatternElement.cpp
|
| diff --git a/Source/core/svg/SVGPatternElement.cpp b/Source/core/svg/SVGPatternElement.cpp
|
| index fa6db5cd4f5a454a45bf7a25a58a142d39bb246e..eaa81a9757148fb5b81d09e86e52da49a23ac02d 100644
|
| --- a/Source/core/svg/SVGPatternElement.cpp
|
| +++ b/Source/core/svg/SVGPatternElement.cpp
|
| @@ -37,10 +37,10 @@ inline SVGPatternElement::SVGPatternElement(Document& document)
|
| , SVGURIReference(this)
|
| , SVGTests(this)
|
| , SVGFitToViewBox(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_patternTransform(SVGAnimatedTransformList::create(this, SVGNames::patternTransformAttr, SVGTransformList::create()))
|
| , m_patternUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::patternUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX))
|
| , m_patternContentUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::patternContentUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE))
|
| @@ -92,13 +92,13 @@ void SVGPatternElement::parseAttribute(const QualifiedName& name, const AtomicSt
|
| } else if (name == SVGNames::patternTransformAttr) {
|
| m_patternTransform->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 (SVGURIReference::parseAttribute(name, value, parseError)) {
|
| } else if (SVGTests::parseAttribute(name, value)) {
|
| } else if (SVGFitToViewBox::parseAttribute(name, value, document(), parseError)) {
|
|
|