| Index: third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| index 72bd3e79710708ddd4568fa3278cd72b13b9ae52..69220493620545e6d1792acc6d2556069fb90959 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| @@ -180,15 +180,16 @@ void SVGUseElement::collectStyleForPresentationAttribute(
|
| const AtomicString& value,
|
| MutableStylePropertySet* style) {
|
| SVGAnimatedPropertyBase* property = propertyFromAttribute(name);
|
| - if (property == m_x)
|
| - addPropertyToPresentationAttributeStyle(
|
| - style, CSSPropertyX, m_x->currentValue()->asCSSPrimitiveValue());
|
| - else if (property == m_y)
|
| - addPropertyToPresentationAttributeStyle(
|
| - style, CSSPropertyY, m_y->currentValue()->asCSSPrimitiveValue());
|
| - else
|
| + if (property == m_x) {
|
| + addPropertyToPresentationAttributeStyle(style, CSSPropertyX,
|
| + m_x->cssValue());
|
| + } else if (property == m_y) {
|
| + addPropertyToPresentationAttributeStyle(style, CSSPropertyY,
|
| + m_y->cssValue());
|
| + } else {
|
| SVGGraphicsElement::collectStyleForPresentationAttribute(name, value,
|
| style);
|
| + }
|
| }
|
|
|
| bool SVGUseElement::isStructurallyExternal() const {
|
|
|