| Index: Source/core/svg/SVGSVGElement.cpp
|
| diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp
|
| index 3088ca5863f8671928e3b1d28392ea64ad615d64..208bd8c41a13bec33e4e122a3aaefec06d882e91 100644
|
| --- a/Source/core/svg/SVGSVGElement.cpp
|
| +++ b/Source/core/svg/SVGSVGElement.cpp
|
| @@ -270,8 +270,9 @@ void SVGSVGElement::collectStyleForPresentationAttribute(const QualifiedName& na
|
| {
|
| if (isOutermostSVGSVGElement() && (name == SVGNames::widthAttr || name == SVGNames::heightAttr)) {
|
| RefPtr<SVGLength> length = SVGLength::create(LengthModeOther);
|
| - length->setValueAsString(value, IGNORE_EXCEPTION);
|
| - if (length->unitType() != LengthTypeUnknown) {
|
| + TrackExceptionState exceptionState;
|
| + length->setValueAsString(value, exceptionState);
|
| + if (!exceptionState.hadException()) {
|
| if (name == SVGNames::widthAttr)
|
| addPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, value);
|
| else if (name == SVGNames::heightAttr)
|
|
|