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 10 matching lines...) Expand all Loading... |
21 #include "config.h" | 21 #include "config.h" |
22 #include "core/svg/SVGEllipseElement.h" | 22 #include "core/svg/SVGEllipseElement.h" |
23 | 23 |
24 #include "core/layout/svg/LayoutSVGEllipse.h" | 24 #include "core/layout/svg/LayoutSVGEllipse.h" |
25 #include "core/svg/SVGLength.h" | 25 #include "core/svg/SVGLength.h" |
26 | 26 |
27 namespace blink { | 27 namespace blink { |
28 | 28 |
29 inline SVGEllipseElement::SVGEllipseElement(Document& document) | 29 inline SVGEllipseElement::SVGEllipseElement(Document& document) |
30 : SVGGeometryElement(SVGNames::ellipseTag, document) | 30 : SVGGeometryElement(SVGNames::ellipseTag, document) |
31 , m_cx(SVGAnimatedLength::create(this, SVGNames::cxAttr, SVGLength::create(L
engthModeWidth), AllowNegativeLengths)) | 31 , m_cx(SVGAnimatedLength::create(this, SVGNames::cxAttr, SVGLength::create(S
VGLengthMode::Width), AllowNegativeLengths)) |
32 , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(L
engthModeHeight), AllowNegativeLengths)) | 32 , m_cy(SVGAnimatedLength::create(this, SVGNames::cyAttr, SVGLength::create(S
VGLengthMode::Height), AllowNegativeLengths)) |
33 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) | 33 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(S
VGLengthMode::Width), ForbidNegativeLengths)) |
34 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) | 34 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(S
VGLengthMode::Height), 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 DEFINE_TRACE(SVGEllipseElement) | 42 DEFINE_TRACE(SVGEllipseElement) |
43 { | 43 { |
44 visitor->trace(m_cx); | 44 visitor->trace(m_cx); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 || m_rx->currentValue()->isRelative() | 138 || m_rx->currentValue()->isRelative() |
139 || m_ry->currentValue()->isRelative(); | 139 || m_ry->currentValue()->isRelative(); |
140 } | 140 } |
141 | 141 |
142 LayoutObject* SVGEllipseElement::createRenderer(const LayoutStyle&) | 142 LayoutObject* SVGEllipseElement::createRenderer(const LayoutStyle&) |
143 { | 143 { |
144 return new LayoutSVGEllipse(this); | 144 return new LayoutSVGEllipse(this); |
145 } | 145 } |
146 | 146 |
147 } // namespace blink | 147 } // namespace blink |
OLD | NEW |