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 7016497693190ffd77a927c947af6c87fc12a309..e644ad1137f5f608641ba2b73fb43ff585cf4ed3 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp |
@@ -96,13 +96,13 @@ void SVGEllipseElement::collectStyleForPresentationAttribute(const QualifiedName |
{ |
RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> property = propertyFromAttribute(name); |
if (property == m_cx) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyCx, *m_cx->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyCx, m_cx->currentValue()->asCSSPrimitiveValue()); |
else if (property == m_cy) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyCy, *m_cy->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyCy, m_cy->currentValue()->asCSSPrimitiveValue()); |
else if (property == m_rx) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyRx, *m_rx->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyRx, m_rx->currentValue()->asCSSPrimitiveValue()); |
else if (property == m_ry) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyRy, *m_ry->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyRy, m_ry->currentValue()->asCSSPrimitiveValue()); |
else |
SVGGeometryElement::collectStyleForPresentationAttribute(name, value, style); |
} |