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 5ab3a9abc37be0e7abedb8929397e791046382ea..42bd6a8fff565eb3e226eb819beb3a81b6c6be7a 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGCircleElement.cpp |
@@ -82,18 +82,19 @@ void SVGCircleElement::collectStyleForPresentationAttribute( |
const AtomicString& value, |
MutableStylePropertySet* style) { |
SVGAnimatedPropertyBase* property = propertyFromAttribute(name); |
- if (property == m_cx) |
- addPropertyToPresentationAttributeStyle( |
- style, CSSPropertyCx, m_cx->currentValue()->asCSSPrimitiveValue()); |
- else if (property == m_cy) |
- addPropertyToPresentationAttributeStyle( |
- style, CSSPropertyCy, m_cy->currentValue()->asCSSPrimitiveValue()); |
- else if (property == m_r) |
- addPropertyToPresentationAttributeStyle( |
- style, CSSPropertyR, m_r->currentValue()->asCSSPrimitiveValue()); |
- else |
+ if (property == m_cx) { |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyCx, |
+ m_cx->cssValue()); |
+ } else if (property == m_cy) { |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyCy, |
+ m_cy->cssValue()); |
+ } else if (property == m_r) { |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyR, |
+ m_r->cssValue()); |
+ } else { |
SVGGeometryElement::collectStyleForPresentationAttribute(name, value, |
style); |
+ } |
} |
void SVGCircleElement::svgAttributeChanged(const QualifiedName& attrName) { |