| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L
engthModeHeight))) | 39 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L
engthModeHeight))) |
| 40 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L
engthModeWidth))) | 40 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L
engthModeWidth))) |
| 41 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L
engthModeHeight))) | 41 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L
engthModeHeight))) |
| 42 { | 42 { |
| 43 ScriptWrappable::init(this); | 43 ScriptWrappable::init(this); |
| 44 | 44 |
| 45 addToPropertyMap(m_x1); | 45 addToPropertyMap(m_x1); |
| 46 addToPropertyMap(m_y1); | 46 addToPropertyMap(m_y1); |
| 47 addToPropertyMap(m_x2); | 47 addToPropertyMap(m_x2); |
| 48 addToPropertyMap(m_y2); | 48 addToPropertyMap(m_y2); |
| 49 registerAnimatedPropertiesForSVGLineElement(); | |
| 50 } | 49 } |
| 51 | 50 |
| 52 PassRefPtr<SVGLineElement> SVGLineElement::create(Document& document) | 51 PassRefPtr<SVGLineElement> SVGLineElement::create(Document& document) |
| 53 { | 52 { |
| 54 return adoptRef(new SVGLineElement(document)); | 53 return adoptRef(new SVGLineElement(document)); |
| 55 } | 54 } |
| 56 | 55 |
| 57 bool SVGLineElement::isSupportedAttribute(const QualifiedName& attrName) | 56 bool SVGLineElement::isSupportedAttribute(const QualifiedName& attrName) |
| 58 { | 57 { |
| 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 58 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 117 |
| 119 bool SVGLineElement::selfHasRelativeLengths() const | 118 bool SVGLineElement::selfHasRelativeLengths() const |
| 120 { | 119 { |
| 121 return m_x1->currentValue()->isRelative() | 120 return m_x1->currentValue()->isRelative() |
| 122 || m_y1->currentValue()->isRelative() | 121 || m_y1->currentValue()->isRelative() |
| 123 || m_x2->currentValue()->isRelative() | 122 || m_x2->currentValue()->isRelative() |
| 124 || m_y2->currentValue()->isRelative(); | 123 || m_y2->currentValue()->isRelative(); |
| 125 } | 124 } |
| 126 | 125 |
| 127 } | 126 } |
| OLD | NEW |