diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
commit | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (patch) | |
tree | cdca40d0353886b3ca52f33a2d7b8f1c0011aafc /Source/WebCore/svg/SVGLineElement.cpp | |
parent | 1b914638db989aaa98631a1c1e02c7b2d44805d8 (diff) | |
download | qtwebkit-8d473cf9743f1d30a16a27114e93bd5af5648d23.tar.gz |
Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578)
Weekly snapshot
Diffstat (limited to 'Source/WebCore/svg/SVGLineElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGLineElement.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Source/WebCore/svg/SVGLineElement.cpp b/Source/WebCore/svg/SVGLineElement.cpp index f057053ae..1c7795b64 100644 --- a/Source/WebCore/svg/SVGLineElement.cpp +++ b/Source/WebCore/svg/SVGLineElement.cpp @@ -81,27 +81,27 @@ bool SVGLineElement::isSupportedAttribute(const QualifiedName& attrName) return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName); } -void SVGLineElement::parseAttribute(Attribute* attr) +void SVGLineElement::parseAttribute(const Attribute& attribute) { SVGParsingError parseError = NoError; - if (!isSupportedAttribute(attr->name())) - SVGStyledTransformableElement::parseAttribute(attr); - else if (attr->name() == SVGNames::x1Attr) - setX1BaseValue(SVGLength::construct(LengthModeWidth, attr->value(), parseError)); - else if (attr->name() == SVGNames::y1Attr) - setY1BaseValue(SVGLength::construct(LengthModeHeight, attr->value(), parseError)); - else if (attr->name() == SVGNames::x2Attr) - setX2BaseValue(SVGLength::construct(LengthModeWidth, attr->value(), parseError)); - else if (attr->name() == SVGNames::y2Attr) - setY2BaseValue(SVGLength::construct(LengthModeHeight, attr->value(), parseError)); - else if (SVGTests::parseAttribute(attr) - || SVGLangSpace::parseAttribute(attr) - || SVGExternalResourcesRequired::parseAttribute(attr)) { + if (!isSupportedAttribute(attribute.name())) + SVGStyledTransformableElement::parseAttribute(attribute); + else if (attribute.name() == SVGNames::x1Attr) + setX1BaseValue(SVGLength::construct(LengthModeWidth, attribute.value(), parseError)); + else if (attribute.name() == SVGNames::y1Attr) + setY1BaseValue(SVGLength::construct(LengthModeHeight, attribute.value(), parseError)); + else if (attribute.name() == SVGNames::x2Attr) + setX2BaseValue(SVGLength::construct(LengthModeWidth, attribute.value(), parseError)); + else if (attribute.name() == SVGNames::y2Attr) + setY2BaseValue(SVGLength::construct(LengthModeHeight, attribute.value(), parseError)); + else if (SVGTests::parseAttribute(attribute) + || SVGLangSpace::parseAttribute(attribute) + || SVGExternalResourcesRequired::parseAttribute(attribute)) { } else ASSERT_NOT_REACHED(); - reportAttributeParsingError(parseError, attr); + reportAttributeParsingError(parseError, attribute); } void SVGLineElement::svgAttributeChanged(const QualifiedName& attrName) |