diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/svg/SVGLineElement.cpp | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/svg/SVGLineElement.cpp')
-rw-r--r-- | WebCore/svg/SVGLineElement.cpp | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/WebCore/svg/SVGLineElement.cpp b/WebCore/svg/SVGLineElement.cpp index 3b664d1..12f54e3 100644 --- a/WebCore/svg/SVGLineElement.cpp +++ b/WebCore/svg/SVGLineElement.cpp @@ -37,10 +37,10 @@ SVGLineElement::SVGLineElement(const QualifiedName& tagName, Document* doc) , SVGTests() , SVGLangSpace() , SVGExternalResourcesRequired() - , m_x1(this, LengthModeWidth) - , m_y1(this, LengthModeHeight) - , m_x2(this, LengthModeWidth) - , m_y2(this, LengthModeHeight) + , m_x1(this, SVGNames::x1Attr, LengthModeWidth) + , m_y1(this, SVGNames::y1Attr, LengthModeHeight) + , m_x2(this, SVGNames::x2Attr, LengthModeWidth) + , m_y2(this, SVGNames::y2Attr, LengthModeHeight) { } @@ -48,21 +48,16 @@ SVGLineElement::~SVGLineElement() { } -ANIMATED_PROPERTY_DEFINITIONS(SVGLineElement, SVGLength, Length, length, X1, x1, SVGNames::x1Attr, m_x1) -ANIMATED_PROPERTY_DEFINITIONS(SVGLineElement, SVGLength, Length, length, Y1, y1, SVGNames::y1Attr, m_y1) -ANIMATED_PROPERTY_DEFINITIONS(SVGLineElement, SVGLength, Length, length, X2, x2, SVGNames::x2Attr, m_x2) -ANIMATED_PROPERTY_DEFINITIONS(SVGLineElement, SVGLength, Length, length, Y2, y2, SVGNames::y2Attr, m_y2) - void SVGLineElement::parseMappedAttribute(MappedAttribute* attr) { if (attr->name() == SVGNames::x1Attr) - setX1BaseValue(SVGLength(this, LengthModeWidth, attr->value())); + setX1BaseValue(SVGLength(LengthModeWidth, attr->value())); else if (attr->name() == SVGNames::y1Attr) - setY1BaseValue(SVGLength(this, LengthModeHeight, attr->value())); + setY1BaseValue(SVGLength(LengthModeHeight, attr->value())); else if (attr->name() == SVGNames::x2Attr) - setX2BaseValue(SVGLength(this, LengthModeWidth, attr->value())); + setX2BaseValue(SVGLength(LengthModeWidth, attr->value())); else if (attr->name() == SVGNames::y2Attr) - setY2BaseValue(SVGLength(this, LengthModeHeight, attr->value())); + setY2BaseValue(SVGLength(LengthModeHeight, attr->value())); else { if (SVGTests::parseMappedAttribute(attr)) @@ -93,8 +88,8 @@ void SVGLineElement::svgAttributeChanged(const QualifiedName& attrName) Path SVGLineElement::toPathData() const { - return Path::createLine(FloatPoint(x1().value(), y1().value()), - FloatPoint(x2().value(), y2().value())); + return Path::createLine(FloatPoint(x1().value(this), y1().value(this)), + FloatPoint(x2().value(this), y2().value(this))); } bool SVGLineElement::hasRelativeValues() const |