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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 inline SVGRectElement::SVGRectElement(Document& document) | 31 inline SVGRectElement::SVGRectElement(Document& document) |
32 : SVGGeometryElement(SVGNames::rectTag, document) | 32 : SVGGeometryElement(SVGNames::rectTag, document) |
33 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 33 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) |
34 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) | 34 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) |
35 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) | 35 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) |
36 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) | 36 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) |
37 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) | 37 , m_rx(SVGAnimatedLength::create(this, SVGNames::rxAttr, SVGLength::create(L
engthModeWidth), ForbidNegativeLengths)) |
38 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) | 38 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) |
39 { | 39 { |
40 ScriptWrappable::init(this); | |
41 | |
42 addToPropertyMap(m_x); | 40 addToPropertyMap(m_x); |
43 addToPropertyMap(m_y); | 41 addToPropertyMap(m_y); |
44 addToPropertyMap(m_width); | 42 addToPropertyMap(m_width); |
45 addToPropertyMap(m_height); | 43 addToPropertyMap(m_height); |
46 addToPropertyMap(m_rx); | 44 addToPropertyMap(m_rx); |
47 addToPropertyMap(m_ry); | 45 addToPropertyMap(m_ry); |
48 } | 46 } |
49 | 47 |
50 DEFINE_NODE_FACTORY(SVGRectElement) | 48 DEFINE_NODE_FACTORY(SVGRectElement) |
51 | 49 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 || m_height->currentValue()->isRelative() | 106 || m_height->currentValue()->isRelative() |
109 || m_rx->currentValue()->isRelative() | 107 || m_rx->currentValue()->isRelative() |
110 || m_ry->currentValue()->isRelative(); | 108 || m_ry->currentValue()->isRelative(); |
111 } | 109 } |
112 | 110 |
113 RenderObject* SVGRectElement::createRenderer(RenderStyle*) | 111 RenderObject* SVGRectElement::createRenderer(RenderStyle*) |
114 { | 112 { |
115 return new RenderSVGRect(this); | 113 return new RenderSVGRect(this); |
116 } | 114 } |
117 | 115 |
118 } | 116 } // namespace blink |
OLD | NEW |