| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 inline SVGEllipseElement::SVGEllipseElement(Document& document) | 31 inline SVGEllipseElement::SVGEllipseElement(Document& document) |
| 32 : SVGGeometryElement(SVGNames::ellipseTag, document) | 32 : SVGGeometryElement(SVGNames::ellipseTag, document) |
| 33 , m_cx(SVGAnimatedLength::create(this, SVGNames::cxAttr, SVGLength::create(L
engthModeWidth), AllowNegativeLengths)) | 33 , m_cx(SVGAnimatedLength::create(this, SVGNames::cxAttr, SVGLength::create(L
engthModeWidth), AllowNegativeLengths)) |
| 34 , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(L
engthModeHeight), AllowNegativeLengths)) | 34 , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(L
engthModeHeight), AllowNegativeLengths)) |
| 35 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) | 35 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) |
| 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) | 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) |
| 37 { | 37 { |
| 38 ScriptWrappable::init(this); | |
| 39 | |
| 40 addToPropertyMap(m_cx); | 38 addToPropertyMap(m_cx); |
| 41 addToPropertyMap(m_cy); | 39 addToPropertyMap(m_cy); |
| 42 addToPropertyMap(m_rx); | 40 addToPropertyMap(m_rx); |
| 43 addToPropertyMap(m_ry); | 41 addToPropertyMap(m_ry); |
| 44 } | 42 } |
| 45 | 43 |
| 46 DEFINE_NODE_FACTORY(SVGEllipseElement) | 44 DEFINE_NODE_FACTORY(SVGEllipseElement) |
| 47 | 45 |
| 48 bool SVGEllipseElement::isSupportedAttribute(const QualifiedName& attrName) | 46 bool SVGEllipseElement::isSupportedAttribute(const QualifiedName& attrName) |
| 49 { | 47 { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 || m_cy->currentValue()->isRelative() | 96 || m_cy->currentValue()->isRelative() |
| 99 || m_rx->currentValue()->isRelative() | 97 || m_rx->currentValue()->isRelative() |
| 100 || m_ry->currentValue()->isRelative(); | 98 || m_ry->currentValue()->isRelative(); |
| 101 } | 99 } |
| 102 | 100 |
| 103 RenderObject* SVGEllipseElement::createRenderer(RenderStyle*) | 101 RenderObject* SVGEllipseElement::createRenderer(RenderStyle*) |
| 104 { | 102 { |
| 105 return new RenderSVGEllipse(this); | 103 return new RenderSVGEllipse(this); |
| 106 } | 104 } |
| 107 | 105 |
| 108 } | 106 } // namespace blink |
| OLD | NEW |