| 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 21 matching lines...) Expand all Loading... |
| 32 , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(L
engthModeHeight), AllowNegativeLengths)) | 32 , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(L
engthModeHeight), AllowNegativeLengths)) |
| 33 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) | 33 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) |
| 34 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) | 34 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) |
| 35 { | 35 { |
| 36 addToPropertyMap(m_cx); | 36 addToPropertyMap(m_cx); |
| 37 addToPropertyMap(m_cy); | 37 addToPropertyMap(m_cy); |
| 38 addToPropertyMap(m_rx); | 38 addToPropertyMap(m_rx); |
| 39 addToPropertyMap(m_ry); | 39 addToPropertyMap(m_ry); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void SVGEllipseElement::trace(Visitor* visitor) |
| 43 { |
| 44 visitor->trace(m_cx); |
| 45 visitor->trace(m_cy); |
| 46 visitor->trace(m_rx); |
| 47 visitor->trace(m_ry); |
| 48 SVGGeometryElement::trace(visitor); |
| 49 } |
| 50 |
| 42 DEFINE_NODE_FACTORY(SVGEllipseElement) | 51 DEFINE_NODE_FACTORY(SVGEllipseElement) |
| 43 | 52 |
| 44 bool SVGEllipseElement::isSupportedAttribute(const QualifiedName& attrName) | 53 bool SVGEllipseElement::isSupportedAttribute(const QualifiedName& attrName) |
| 45 { | 54 { |
| 46 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 55 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 47 if (supportedAttributes.isEmpty()) { | 56 if (supportedAttributes.isEmpty()) { |
| 48 supportedAttributes.add(SVGNames::cxAttr); | 57 supportedAttributes.add(SVGNames::cxAttr); |
| 49 supportedAttributes.add(SVGNames::cyAttr); | 58 supportedAttributes.add(SVGNames::cyAttr); |
| 50 supportedAttributes.add(SVGNames::rxAttr); | 59 supportedAttributes.add(SVGNames::rxAttr); |
| 51 supportedAttributes.add(SVGNames::ryAttr); | 60 supportedAttributes.add(SVGNames::ryAttr); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 || m_rx->currentValue()->isRelative() | 104 || m_rx->currentValue()->isRelative() |
| 96 || m_ry->currentValue()->isRelative(); | 105 || m_ry->currentValue()->isRelative(); |
| 97 } | 106 } |
| 98 | 107 |
| 99 RenderObject* SVGEllipseElement::createRenderer(RenderStyle*) | 108 RenderObject* SVGEllipseElement::createRenderer(RenderStyle*) |
| 100 { | 109 { |
| 101 return new RenderSVGEllipse(this); | 110 return new RenderSVGEllipse(this); |
| 102 } | 111 } |
| 103 | 112 |
| 104 } // namespace blink | 113 } // namespace blink |
| OLD | NEW |