| Index: third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp b/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| index f5452484535e2a33a66df65b61d8cf074e14ae82..54aee708ca293845a00921c7467ec394a2043a2b 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| @@ -75,13 +75,13 @@ void SVGForeignObjectElement::collectStyleForPresentationAttribute(const Qualifi
|
| {
|
| 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);
|
| }
|
|
|