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

Unified Diff: Source/core/svg/SVGComponentTransferFunctionElement.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
« no previous file with comments | « Source/core/svg/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGEllipseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGComponentTransferFunctionElement.cpp
diff --git a/Source/core/svg/SVGComponentTransferFunctionElement.cpp b/Source/core/svg/SVGComponentTransferFunctionElement.cpp
index 6df8141e99b670b0d7052cc0f7d01bc323c7f254..739e7cc596770c25f28926f15b1b2befd2f3b9ad 100644
--- a/Source/core/svg/SVGComponentTransferFunctionElement.cpp
+++ b/Source/core/svg/SVGComponentTransferFunctionElement.cpp
@@ -80,29 +80,7 @@ bool SVGComponentTransferFunctionElement::isSupportedAttribute(const QualifiedNa
void SVGComponentTransferFunctionElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
- if (!isSupportedAttribute(name)) {
- SVGElement::parseAttribute(name, value);
- return;
- }
-
- SVGParsingError parseError = NoError;
-
- if (name == SVGNames::tableValuesAttr)
- m_tableValues->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::typeAttr)
- m_type->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::slopeAttr)
- m_slope->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::interceptAttr)
- m_intercept->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::amplitudeAttr)
- m_amplitude->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::exponentAttr)
- m_exponent->setBaseValueAsString(value, parseError);
- else if (name == SVGNames::offsetAttr)
- m_offset->setBaseValueAsString(value, parseError);
-
- reportAttributeParsingError(parseError, name, value);
+ parseAttributeNew(name, value);
}
void SVGComponentTransferFunctionElement::svgAttributeChanged(const QualifiedName& attrName)
« no previous file with comments | « Source/core/svg/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGEllipseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698