Index: third_party/WebKit/Source/core/svg/SVGImageElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp |
index 4e1d852d8775e4f590f50b1882d82aa06c3930b2..1e76f1491c154199d8fabdc7ef2079403522ea39 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp |
@@ -93,15 +93,14 @@ bool SVGImageElement::isPresentationAttributeWithSVGDOM(const QualifiedName& att |
void SVGImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) |
{ |
RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> property = propertyFromAttribute(name); |
- |
if (property == m_width) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, *m_width->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, m_width->currentValue()->asCSSPrimitiveValue()); |
else if (property == m_height) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyHeight, *m_height->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyHeight, m_height->currentValue()->asCSSPrimitiveValue()); |
else if (property == m_x) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyX, *m_x->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyX, m_x->currentValue()->asCSSPrimitiveValue()); |
else if (property == m_y) |
- addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyY, *m_y->currentValue()); |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyY, m_y->currentValue()->asCSSPrimitiveValue()); |
else |
SVGGraphicsElement::collectStyleForPresentationAttribute(name, value, style); |
} |