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

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

Issue 2708923011: Avoid duplicating the CSS property mapping for SVG pres. attrs. (Closed)
Patch Set: Created 3 years, 10 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
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 42bd6a8fff565eb3e226eb819beb3a81b6c6be7a..162c24310cf117e33368f1c84e2330afc9b25021 100644
--- a/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp
@@ -83,13 +83,13 @@ void SVGCircleElement::collectStyleForPresentationAttribute(
MutableStylePropertySet* style) {
SVGAnimatedPropertyBase* property = propertyFromAttribute(name);
if (property == m_cx) {
- addPropertyToPresentationAttributeStyle(style, CSSPropertyCx,
+ addPropertyToPresentationAttributeStyle(style, property->cssPropertyId(),
m_cx->cssValue());
} else if (property == m_cy) {
- addPropertyToPresentationAttributeStyle(style, CSSPropertyCy,
+ addPropertyToPresentationAttributeStyle(style, property->cssPropertyId(),
m_cy->cssValue());
} else if (property == m_r) {
- addPropertyToPresentationAttributeStyle(style, CSSPropertyR,
+ addPropertyToPresentationAttributeStyle(style, property->cssPropertyId(),
m_r->cssValue());
} else {
SVGGeometryElement::collectStyleForPresentationAttribute(name, value,
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp ('k') | third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698