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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight))) | 44 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight))) |
45 { | 45 { |
46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
47 | 47 |
48 addToPropertyMap(m_x); | 48 addToPropertyMap(m_x); |
49 addToPropertyMap(m_y); | 49 addToPropertyMap(m_y); |
50 addToPropertyMap(m_width); | 50 addToPropertyMap(m_width); |
51 addToPropertyMap(m_height); | 51 addToPropertyMap(m_height); |
52 addToPropertyMap(m_rx); | 52 addToPropertyMap(m_rx); |
53 addToPropertyMap(m_ry); | 53 addToPropertyMap(m_ry); |
54 | |
55 registerAnimatedPropertiesForSVGRectElement(); | |
56 } | 54 } |
57 | 55 |
58 PassRefPtr<SVGRectElement> SVGRectElement::create(Document& document) | 56 PassRefPtr<SVGRectElement> SVGRectElement::create(Document& document) |
59 { | 57 { |
60 return adoptRef(new SVGRectElement(document)); | 58 return adoptRef(new SVGRectElement(document)); |
61 } | 59 } |
62 | 60 |
63 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) | 61 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) |
64 { | 62 { |
65 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 63 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 || m_rx->currentValue()->isRelative() | 137 || m_rx->currentValue()->isRelative() |
140 || m_ry->currentValue()->isRelative(); | 138 || m_ry->currentValue()->isRelative(); |
141 } | 139 } |
142 | 140 |
143 RenderObject* SVGRectElement::createRenderer(RenderStyle*) | 141 RenderObject* SVGRectElement::createRenderer(RenderStyle*) |
144 { | 142 { |
145 return new RenderSVGRect(this); | 143 return new RenderSVGRect(this); |
146 } | 144 } |
147 | 145 |
148 } | 146 } |
OLD | NEW |