| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 inline SVGRectElement::SVGRectElement(const QualifiedName& tagName, Document* do
cument) | 57 inline SVGRectElement::SVGRectElement(const QualifiedName& tagName, Document* do
cument) |
| 58 : SVGStyledTransformableElement(tagName, document) | 58 : SVGStyledTransformableElement(tagName, document) |
| 59 , m_x(LengthModeWidth) | 59 , m_x(LengthModeWidth) |
| 60 , m_y(LengthModeHeight) | 60 , m_y(LengthModeHeight) |
| 61 , m_width(LengthModeWidth) | 61 , m_width(LengthModeWidth) |
| 62 , m_height(LengthModeHeight) | 62 , m_height(LengthModeHeight) |
| 63 , m_rx(LengthModeWidth) | 63 , m_rx(LengthModeWidth) |
| 64 , m_ry(LengthModeHeight) | 64 , m_ry(LengthModeHeight) |
| 65 { | 65 { |
| 66 ASSERT(hasTagName(SVGNames::rectTag)); | 66 ASSERT(hasTagName(SVGNames::rectTag)); |
| 67 ScriptWrappable::init(this); |
| 67 registerAnimatedPropertiesForSVGRectElement(); | 68 registerAnimatedPropertiesForSVGRectElement(); |
| 68 } | 69 } |
| 69 | 70 |
| 70 PassRefPtr<SVGRectElement> SVGRectElement::create(const QualifiedName& tagName,
Document* document) | 71 PassRefPtr<SVGRectElement> SVGRectElement::create(const QualifiedName& tagName,
Document* document) |
| 71 { | 72 { |
| 72 return adoptRef(new SVGRectElement(tagName, document)); | 73 return adoptRef(new SVGRectElement(tagName, document)); |
| 73 } | 74 } |
| 74 | 75 |
| 75 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) | 76 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) |
| 76 { | 77 { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 168 } |
| 168 | 169 |
| 169 RenderObject* SVGRectElement::createRenderer(RenderArena* arena, RenderStyle*) | 170 RenderObject* SVGRectElement::createRenderer(RenderArena* arena, RenderStyle*) |
| 170 { | 171 { |
| 171 return new (arena) RenderSVGRect(this); | 172 return new (arena) RenderSVGRect(this); |
| 172 } | 173 } |
| 173 | 174 |
| 174 } | 175 } |
| 175 | 176 |
| 176 #endif // ENABLE(SVG) | 177 #endif // ENABLE(SVG) |
| OLD | NEW |