| 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 16 matching lines...) Expand all Loading... |
| 27 #include "core/svg/SVGLength.h" | 27 #include "core/svg/SVGLength.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 inline SVGCircleElement::SVGCircleElement(Document& document) | 31 inline SVGCircleElement::SVGCircleElement(Document& document) |
| 32 : SVGGeometryElement(SVGNames::circleTag, document) | 32 : SVGGeometryElement(SVGNames::circleTag, 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_r(SVGAnimatedLength::create(this, SVGNames::rAttr, SVGLength::create(Len
gthModeOther), ForbidNegativeLengths)) | 35 , m_r(SVGAnimatedLength::create(this, SVGNames::rAttr, SVGLength::create(Len
gthModeOther), ForbidNegativeLengths)) |
| 36 { | 36 { |
| 37 ScriptWrappable::init(this); | |
| 38 | |
| 39 addToPropertyMap(m_cx); | 37 addToPropertyMap(m_cx); |
| 40 addToPropertyMap(m_cy); | 38 addToPropertyMap(m_cy); |
| 41 addToPropertyMap(m_r); | 39 addToPropertyMap(m_r); |
| 42 } | 40 } |
| 43 | 41 |
| 44 DEFINE_NODE_FACTORY(SVGCircleElement) | 42 DEFINE_NODE_FACTORY(SVGCircleElement) |
| 45 | 43 |
| 46 bool SVGCircleElement::isSupportedAttribute(const QualifiedName& attrName) | 44 bool SVGCircleElement::isSupportedAttribute(const QualifiedName& attrName) |
| 47 { | 45 { |
| 48 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 46 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 || m_cy->currentValue()->isRelative() | 92 || m_cy->currentValue()->isRelative() |
| 95 || m_r->currentValue()->isRelative(); | 93 || m_r->currentValue()->isRelative(); |
| 96 } | 94 } |
| 97 | 95 |
| 98 RenderObject* SVGCircleElement::createRenderer(RenderStyle*) | 96 RenderObject* SVGCircleElement::createRenderer(RenderStyle*) |
| 99 { | 97 { |
| 100 return new RenderSVGEllipse(this); | 98 return new RenderSVGEllipse(this); |
| 101 } | 99 } |
| 102 | 100 |
| 103 } | 101 } |
| OLD | NEW |