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

Unified Diff: third_party/WebKit/Source/core/svg/SVGEllipseElement.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/SVGEllipseElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp b/third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp
index 489598c0ed39bf4ceb9cd070f42714445c0ee5ca..c2161df28c56c5ea2e518d02038012fab2f1bbd0 100644
--- a/third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp
@@ -30,17 +30,20 @@ inline SVGEllipseElement::SVGEllipseElement(Document& document)
: SVGGeometryElement(SVGNames::ellipseTag, 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_rx(SVGAnimatedLength::create(this,
SVGNames::rxAttr,
- SVGLength::create(SVGLengthMode::Width))),
- m_ry(
- SVGAnimatedLength::create(this,
- SVGNames::ryAttr,
- SVGLength::create(SVGLengthMode::Height))) {
+ SVGLength::create(SVGLengthMode::Width),
+ CSSPropertyRx)),
+ m_ry(SVGAnimatedLength::create(this,
+ SVGNames::ryAttr,
+ SVGLength::create(SVGLengthMode::Height),
+ CSSPropertyRy)) {
addToPropertyMap(m_cx);
addToPropertyMap(m_cy);
addToPropertyMap(m_rx);
@@ -87,22 +90,6 @@ Path SVGEllipseElement::asPath() const {
return path;
}
-bool SVGEllipseElement::isPresentationAttribute(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::cxAttr || attrName == SVGNames::cyAttr ||
- attrName == SVGNames::rxAttr || attrName == SVGNames::ryAttr)
- return true;
- return SVGGeometryElement::isPresentationAttribute(attrName);
-}
-
-bool SVGEllipseElement::isPresentationAttributeWithSVGDOM(
- const QualifiedName& attrName) const {
- if (attrName == SVGNames::cxAttr || attrName == SVGNames::cyAttr ||
- attrName == SVGNames::rxAttr || attrName == SVGNames::ryAttr)
- return true;
- return SVGGeometryElement::isPresentationAttributeWithSVGDOM(attrName);
-}
-
void SVGEllipseElement::collectStyleForPresentationAttribute(
const QualifiedName& name,
const AtomicString& value,
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGEllipseElement.h ('k') | third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698