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

Unified Diff: third_party/WebKit/Source/core/svg/SVGCircleElement.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/SVGCircleElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp b/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp
index fdc7b588e70e7815ccbfd71b89d5760d9fc77c53..5ab3a9abc37be0e7abedb8929397e791046382ea 100644
--- a/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp
@@ -30,13 +30,16 @@ inline SVGCircleElement::SVGCircleElement(Document& document)
: SVGGeometryElement(SVGNames::circleTag, document),
m_cx(SVGAnimatedLength::create(this,
SVGNames::cxAttr,
- SVGLength::create(SVGLengthMode::Width))),
+ SVGLength::create(SVGLengthMode::Width),
+ CSSPropertyCx)),
m_cy(SVGAnimatedLength::create(this,
SVGNames::cyAttr,
- SVGLength::create(SVGLengthMode::Height))),
+ SVGLength::create(SVGLengthMode::Height),
+ CSSPropertyCy)),
m_r(SVGAnimatedLength::create(this,
SVGNames::rAttr,
- SVGLength::create(SVGLengthMode::Other))) {
+ SVGLength::create(SVGLengthMode::Other),
+ CSSPropertyR)) {
addToPropertyMap(m_cx);
addToPropertyMap(m_cy);
addToPropertyMap(m_r);
@@ -74,22 +77,6 @@ Path SVGCircleElement::asPath() const {
return path;
}
-bool SVGCircleElement::isPresentationAttribute(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::cxAttr || attrName == SVGNames::cyAttr ||
- attrName == SVGNames::rAttr)
- return true;
- return SVGGeometryElement::isPresentationAttribute(attrName);
-}
-
-bool SVGCircleElement::isPresentationAttributeWithSVGDOM(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::cxAttr || attrName == SVGNames::cyAttr ||
- attrName == SVGNames::rAttr)
- return true;
- return SVGGeometryElement::isPresentationAttributeWithSVGDOM(attrName);
-}
-
void SVGCircleElement::collectStyleForPresentationAttribute(
const QualifiedName& name,
const AtomicString& value,
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGCircleElement.h ('k') | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698