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

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

Issue 421863002: SVGElement::parseAttribute resolves property via property map (Step 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add return 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/SVGElement.h ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index 1e1ef4c08fe945a52b55c3351cbf7333fe4d71e8..571bfc39721e104e1b9316f1d0bbfef305a65320 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -602,6 +602,20 @@ void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v
}
}
+void SVGElement::parseAttributeNew(const QualifiedName& name, const AtomicString& value)
+{
+ RefPtr<SVGAnimatedPropertyBase> property = propertyFromAttribute(name);
+ if (property) {
+ SVGParsingError parseError = NoError;
+ property->setBaseValueAsString(value, parseError);
+ reportAttributeParsingError(parseError, name, value);
+
+ return;
+ }
+
+ SVGElement::parseAttribute(name, value);
+}
+
typedef HashMap<QualifiedName, AnimatedPropertyType> AttributeToPropertyTypeMap;
AnimatedPropertyType SVGElement::animatedPropertyTypeForCSSAttribute(const QualifiedName& attributeName)
{
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698