| Index: Source/core/svg/SVGSymbolElement.cpp
|
| diff --git a/Source/core/svg/SVGSymbolElement.cpp b/Source/core/svg/SVGSymbolElement.cpp
|
| index f3197c295054053aef5a2ffd0ffe3bdec6a95163..4035b2534c2965a4c0fc3c5f25d471fc025af3d5 100644
|
| --- a/Source/core/svg/SVGSymbolElement.cpp
|
| +++ b/Source/core/svg/SVGSymbolElement.cpp
|
| @@ -36,13 +36,10 @@ END_REGISTER_ANIMATED_PROPERTIES
|
|
|
| inline SVGSymbolElement::SVGSymbolElement(Document& document)
|
| : SVGElement(SVGNames::symbolTag, document)
|
| - , m_viewBox(SVGAnimatedRect::create(this, SVGNames::viewBoxAttr))
|
| - , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(this, SVGNames::preserveAspectRatioAttr, SVGPreserveAspectRatio::create()))
|
| + , SVGFitToViewBox(this)
|
| {
|
| ScriptWrappable::init(this);
|
|
|
| - addToPropertyMap(m_viewBox);
|
| - addToPropertyMap(m_preserveAspectRatio);
|
| registerAnimatedPropertiesForSVGSymbolElement();
|
| }
|
|
|
| @@ -67,10 +64,13 @@ void SVGSymbolElement::parseAttribute(const QualifiedName& name, const AtomicStr
|
| return;
|
| }
|
|
|
| - if (SVGFitToViewBox::parseAttribute(this, name, value))
|
| - return;
|
| + SVGParsingError parseError = NoError;
|
| + if (SVGFitToViewBox::parseAttribute(name, value, document(), parseError)) {
|
| + } else {
|
| + ASSERT_NOT_REACHED();
|
| + }
|
|
|
| - ASSERT_NOT_REACHED();
|
| + reportAttributeParsingError(parseError, name, value);
|
| }
|
|
|
| void SVGSymbolElement::svgAttributeChanged(const QualifiedName& attrName)
|
|
|