| 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 d5966e2bc0877461447107387b3b7ae62d6df45e..daf86ffa523129e5401b5d4e2478b36e9fc5b38b 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| @@ -70,23 +70,22 @@ void SVGForeignObjectElement::collectStyleForPresentationAttribute(
|
| const AtomicString& value,
|
| MutableStylePropertySet* style) {
|
| SVGAnimatedPropertyBase* property = propertyFromAttribute(name);
|
| - if (property == m_width)
|
| - addPropertyToPresentationAttributeStyle(
|
| - style, CSSPropertyWidth,
|
| - m_width->currentValue()->asCSSPrimitiveValue());
|
| - else if (property == m_height)
|
| - addPropertyToPresentationAttributeStyle(
|
| - style, CSSPropertyHeight,
|
| - m_height->currentValue()->asCSSPrimitiveValue());
|
| - else 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_width) {
|
| + addPropertyToPresentationAttributeStyle(style, CSSPropertyWidth,
|
| + m_width->cssValue());
|
| + } else if (property == m_height) {
|
| + addPropertyToPresentationAttributeStyle(style, CSSPropertyHeight,
|
| + m_height->cssValue());
|
| + } 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);
|
| + }
|
| }
|
|
|
| void SVGForeignObjectElement::svgAttributeChanged(
|
|
|