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/SVGRectElement.h" | 22 #include "core/svg/SVGRectElement.h" |
23 | 23 |
24 #include "core/layout/svg/LayoutSVGRect.h" | 24 #include "core/layout/svg/LayoutSVGRect.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 SVGRectElement::SVGRectElement(Document& document) | 29 inline SVGRectElement::SVGRectElement(Document& document) |
30 : SVGGeometryElement(SVGNames::rectTag, document) | 30 : SVGGeometryElement(SVGNames::rectTag, document) |
31 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 31 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG
LengthMode::Width), AllowNegativeLengths)) |
32 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) | 32 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG
LengthMode::Height), AllowNegativeLengths)) |
33 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) | 33 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(SVGLengthMode::Width), ForbidNegativeLengths)) |
34 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) | 34 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(SVGLengthMode::Height), ForbidNegativeLengths)) |
35 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) | 35 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(S
VGLengthMode::Width), ForbidNegativeLengths)) |
36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) | 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(S
VGLengthMode::Height), ForbidNegativeLengths)) |
37 { | 37 { |
38 addToPropertyMap(m_x); | 38 addToPropertyMap(m_x); |
39 addToPropertyMap(m_y); | 39 addToPropertyMap(m_y); |
40 addToPropertyMap(m_width); | 40 addToPropertyMap(m_width); |
41 addToPropertyMap(m_height); | 41 addToPropertyMap(m_height); |
42 addToPropertyMap(m_rx); | 42 addToPropertyMap(m_rx); |
43 addToPropertyMap(m_ry); | 43 addToPropertyMap(m_ry); |
44 } | 44 } |
45 | 45 |
46 DEFINE_TRACE(SVGRectElement) | 46 DEFINE_TRACE(SVGRectElement) |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 || m_rx->currentValue()->isRelative() | 155 || m_rx->currentValue()->isRelative() |
156 || m_ry->currentValue()->isRelative(); | 156 || m_ry->currentValue()->isRelative(); |
157 } | 157 } |
158 | 158 |
159 LayoutObject* SVGRectElement::createRenderer(const LayoutStyle&) | 159 LayoutObject* SVGRectElement::createRenderer(const LayoutStyle&) |
160 { | 160 { |
161 return new LayoutSVGRect(this); | 161 return new LayoutSVGRect(this); |
162 } | 162 } |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
OLD | NEW |