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

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

Issue 424733002: Simplify SVGAnimat\w+Element::parseAttribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Animation element should be inactive in SVGTest change 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/SVGAnimateTransformElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimationElement.cpp
diff --git a/Source/core/svg/SVGAnimationElement.cpp b/Source/core/svg/SVGAnimationElement.cpp
index b1397f06b87b37edd66525151c86bfa0dd7b8145..3ae57ef42659a116516cafb9ded4fd53eb9f82bd 100644
--- a/Source/core/svg/SVGAnimationElement.cpp
+++ b/Source/core/svg/SVGAnimationElement.cpp
@@ -142,7 +142,6 @@ bool SVGAnimationElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
if (supportedAttributes.isEmpty()) {
- SVGTests::addSupportedAttributes(supportedAttributes);
supportedAttributes.add(SVGNames::valuesAttr);
supportedAttributes.add(SVGNames::keyTimesAttr);
supportedAttributes.add(SVGNames::keyPointsAttr);
@@ -209,15 +208,12 @@ void SVGAnimationElement::parseAttribute(const QualifiedName& name, const Atomic
return;
}
- if (SVGTests::parseAttribute(name, value))
- return;
kouhei (in TOK) 2014/07/28 13:34:41 This is handled by SVGElement::parseAttributeNew
-
ASSERT_NOT_REACHED();
}
void SVGAnimationElement::svgAttributeChanged(const QualifiedName& attrName)
{
- if (!isSupportedAttribute(attrName)) {
+ if (!isSupportedAttribute(attrName) && !SVGTests::isKnownAttribute(attrName)) {
fs 2014/07/28 14:01:01 Nit: Maybe make a note that this (the SVGTests-cal
kouhei (in TOK) 2014/07/28 14:28:58 Hmm, I didn't intend to move it back later. Maybe
fs 2014/07/28 17:12:36 Moving it to SVGSMILElement SGTM (and would void t
SVGSMILElement::svgAttributeChanged(attrName);
return;
}
« no previous file with comments | « Source/core/svg/SVGAnimateTransformElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698