| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 REGISTER_LOCAL_ANIMATED_PROPERTY(x) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(x) |
| 44 REGISTER_LOCAL_ANIMATED_PROPERTY(y) | 44 REGISTER_LOCAL_ANIMATED_PROPERTY(y) |
| 45 REGISTER_LOCAL_ANIMATED_PROPERTY(width) | 45 REGISTER_LOCAL_ANIMATED_PROPERTY(width) |
| 46 REGISTER_LOCAL_ANIMATED_PROPERTY(height) | 46 REGISTER_LOCAL_ANIMATED_PROPERTY(height) |
| 47 REGISTER_LOCAL_ANIMATED_PROPERTY(rx) | 47 REGISTER_LOCAL_ANIMATED_PROPERTY(rx) |
| 48 REGISTER_LOCAL_ANIMATED_PROPERTY(ry) | 48 REGISTER_LOCAL_ANIMATED_PROPERTY(ry) |
| 49 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 49 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
| 50 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | 50 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
| 51 END_REGISTER_ANIMATED_PROPERTIES | 51 END_REGISTER_ANIMATED_PROPERTIES |
| 52 | 52 |
| 53 inline SVGRectElement::SVGRectElement(const QualifiedName& tagName, Document* do
cument) | 53 inline SVGRectElement::SVGRectElement(const QualifiedName& tagName, Document& do
cument) |
| 54 : SVGGraphicsElement(tagName, document) | 54 : SVGGraphicsElement(tagName, document) |
| 55 , m_x(LengthModeWidth) | 55 , m_x(LengthModeWidth) |
| 56 , m_y(LengthModeHeight) | 56 , m_y(LengthModeHeight) |
| 57 , m_width(LengthModeWidth) | 57 , m_width(LengthModeWidth) |
| 58 , m_height(LengthModeHeight) | 58 , m_height(LengthModeHeight) |
| 59 , m_rx(LengthModeWidth) | 59 , m_rx(LengthModeWidth) |
| 60 , m_ry(LengthModeHeight) | 60 , m_ry(LengthModeHeight) |
| 61 { | 61 { |
| 62 ASSERT(hasTagName(SVGNames::rectTag)); | 62 ASSERT(hasTagName(SVGNames::rectTag)); |
| 63 ScriptWrappable::init(this); | 63 ScriptWrappable::init(this); |
| 64 registerAnimatedPropertiesForSVGRectElement(); | 64 registerAnimatedPropertiesForSVGRectElement(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 PassRefPtr<SVGRectElement> SVGRectElement::create(const QualifiedName& tagName,
Document* document) | 67 PassRefPtr<SVGRectElement> SVGRectElement::create(const QualifiedName& tagName,
Document& document) |
| 68 { | 68 { |
| 69 return adoptRef(new SVGRectElement(tagName, document)); | 69 return adoptRef(new SVGRectElement(tagName, document)); |
| 70 } | 70 } |
| 71 | 71 |
| 72 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) | 72 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) |
| 73 { | 73 { |
| 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 75 if (supportedAttributes.isEmpty()) { | 75 if (supportedAttributes.isEmpty()) { |
| 76 SVGLangSpace::addSupportedAttributes(supportedAttributes); | 76 SVGLangSpace::addSupportedAttributes(supportedAttributes); |
| 77 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); | 77 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 || rxCurrentValue().isRelative() | 157 || rxCurrentValue().isRelative() |
| 158 || ryCurrentValue().isRelative(); | 158 || ryCurrentValue().isRelative(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 RenderObject* SVGRectElement::createRenderer(RenderStyle*) | 161 RenderObject* SVGRectElement::createRenderer(RenderStyle*) |
| 162 { | 162 { |
| 163 return new RenderSVGRect(this); | 163 return new RenderSVGRect(this); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } | 166 } |
| OLD | NEW |