void SVGEllipseElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) { RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> property = propertyFromAttribute(name); if (property == m_cx) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyCx, *m_cx->currentValue()); else if (property == m_cy) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyCy, *m_cy->currentValue()); else if (property == m_rx) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyRx, *m_rx->currentValue()); else if (property == m_ry) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyRy, *m_ry->currentValue()); else SVGGeometryElement::collectStyleForPresentationAttribute(name, value, style); }
void SVGSVGElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) { RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> property = propertyFromAttribute(name); if (property == m_x) { addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyX, *m_x->currentValue()); } else if (property == m_y) { addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyY, *m_y->currentValue()); } else if (isOutermostSVGSVGElement() && (property == m_width || property == m_height)) { if (property == m_width) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, *m_width->currentValue()); else if (property == m_height) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyHeight, *m_height->currentValue()); } else { SVGGraphicsElement::collectStyleForPresentationAttribute(name, value, style); } }
void SVGRectElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) { RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> property = propertyFromAttribute(name); if (property == m_x) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyX, *m_x->currentValue()); else if (property == m_y) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyY, *m_y->currentValue()); else if (property == m_width) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, *m_width->currentValue()); else if (property == m_height) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyHeight, *m_height->currentValue()); else if (property == m_rx) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyRx, *m_rx->currentValue()); else if (property == m_ry) addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyRy, *m_ry->currentValue()); else SVGGeometryElement::collectStyleForPresentationAttribute(name, value, style); }