Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1042)

Unified Diff: Source/core/svg/SVGEllipseElement.cpp

Issue 420193011: SVGElement::parseAttribute resolves property via property map (Step 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGEllipseElement.cpp
diff --git a/Source/core/svg/SVGEllipseElement.cpp b/Source/core/svg/SVGEllipseElement.cpp
index 9badd3b4db662c2993dcbb5f34cd77c09cbd6643..b2cf79e8adaca5dbe511df4979b5da8c9c7157fe 100644
--- a/Source/core/svg/SVGEllipseElement.cpp
+++ b/Source/core/svg/SVGEllipseElement.cpp
@@ -59,22 +59,7 @@ bool SVGEllipseElement::isSupportedAttribute(const QualifiedName& attrName)
void SVGEllipseElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
- SVGParsingError parseError = NoError;
-
- if (!isSupportedAttribute(name))
- SVGGeometryElement::parseAttribute(name, value);
- else if (name == SVGNames::cxAttr)
- m_cx->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::cyAttr)
- m_cy->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::rxAttr)
- m_rx->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::ryAttr)
- m_ry->setBaseValueAsString(value, parseError);
- else
- ASSERT_NOT_REACHED();
-
- reportAttributeParsingError(parseError, name, value);
+ parseAttributeNew(name, value);
}
void SVGEllipseElement::svgAttributeChanged(const QualifiedName& attrName)
« no previous file with comments | « Source/core/svg/SVGComponentTransferFunctionElement.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698