Index: Source/core/svg/SVGForeignObjectElement.cpp |
diff --git a/Source/core/svg/SVGForeignObjectElement.cpp b/Source/core/svg/SVGForeignObjectElement.cpp |
index f9734c4582b7a10be1471498eedc7f16b1eb6798..761ede015d8c441342cb64989c20c8bd393b3471 100644 |
--- a/Source/core/svg/SVGForeignObjectElement.cpp |
+++ b/Source/core/svg/SVGForeignObjectElement.cpp |
@@ -63,22 +63,7 @@ bool SVGForeignObjectElement::isSupportedAttribute(const QualifiedName& attrName |
void SVGForeignObjectElement::parseAttribute(const QualifiedName& name, const AtomicString& value) |
{ |
- SVGParsingError parseError = NoError; |
- |
- if (!isSupportedAttribute(name)) |
- SVGGraphicsElement::parseAttribute(name, value); |
- else if (name == SVGNames::xAttr) |
- m_x->setBaseValueAsString(value, parseError); |
- else if (name == SVGNames::yAttr) |
- m_y->setBaseValueAsString(value, parseError); |
- else if (name == SVGNames::widthAttr) |
- m_width->setBaseValueAsString(value, parseError); |
- else if (name == SVGNames::heightAttr) |
- m_height->setBaseValueAsString(value, parseError); |
- else |
- ASSERT_NOT_REACHED(); |
- |
- reportAttributeParsingError(parseError, name, value); |
+ parseAttributeNew(name, value); |
} |
bool SVGForeignObjectElement::isPresentationAttribute(const QualifiedName& name) const |