| Index: third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| index baec2162f99126295778b149f6823b99d83b9495..736cf1c7c9ea825b78507da511035b7fe3323e93 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| @@ -205,6 +205,14 @@ void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString
|
| } else if (name == HTMLNames::onerrorAttr) {
|
| document().setWindowAttributeEventListener(EventTypeNames::error, createAttributeEventListener(document().frame(), name, value, eventParameterName()));
|
| } else if (SVGZoomAndPan::parseAttribute(name, value)) {
|
| + } else if (name == SVGNames::widthAttr || name == SVGNames::heightAttr) {
|
| + SVGAnimatedLength* property = name == SVGNames::widthAttr ? m_width : m_height;
|
| + SVGParsingError parseError;
|
| + if (!value.isNull())
|
| + parseError = property->setBaseValueAsString(value);
|
| + if (parseError != SVGParseStatus::NoError || value.isNull())
|
| + property->setDefaultValueAsString("100%");
|
| + reportAttributeParsingError(parseError, name, value);
|
| } else {
|
| SVGElement::parseAttribute(name, oldValue, value);
|
| }
|
|
|