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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathElement.cpp

Issue 2485663002: Store CSSPropertyID in SVGAnimatedPropertyBase (Closed)
Patch Set: Add missing case Created 4 years, 1 month 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: third_party/WebKit/Source/core/svg/SVGPathElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
index 7b734eaabe5fbc7fb05a141da59231127a54af50..d65a378887c3fa87b332ce1d6a6c3683e3ff56a3 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
@@ -54,7 +54,7 @@ class SVGAnimatedPathLength final : public SVGAnimatedNumber {
inline SVGPathElement::SVGPathElement(Document& document)
: SVGGeometryElement(SVGNames::pathTag, document),
m_pathLength(SVGAnimatedPathLength::create(this)),
- m_path(SVGAnimatedPath::create(this, SVGNames::dAttr)) {
+ m_path(SVGAnimatedPath::create(this, SVGNames::dAttr, CSSPropertyD)) {
addToPropertyMap(m_pathLength);
addToPropertyMap(m_path);
}
@@ -116,20 +116,6 @@ unsigned SVGPathElement::getPathSegAtLength(float length) {
return SVGPathQuery(pathByteStream()).getPathSegIndexAtLength(length);
}
-bool SVGPathElement::isPresentationAttribute(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::dAttr)
- return true;
- return SVGGeometryElement::isPresentationAttribute(attrName);
-}
-
-bool SVGPathElement::isPresentationAttributeWithSVGDOM(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::dAttr)
- return true;
- return SVGGeometryElement::isPresentationAttributeWithSVGDOM(attrName);
-}
-
void SVGPathElement::svgAttributeChanged(const QualifiedName& attrName) {
if (attrName == SVGNames::dAttr) {
SVGElement::InvalidationGuard invalidationGuard(this);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathElement.h ('k') | third_party/WebKit/Source/core/svg/SVGRectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698