| 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 25 matching lines...) Expand all Loading... |
| 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), ForbidNegativeLengths)) | 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L
engthModeHeight), 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 void SVGRectElement::trace(Visitor* visitor) |
| 47 { |
| 48 visitor->trace(m_x); |
| 49 visitor->trace(m_y); |
| 50 visitor->trace(m_width); |
| 51 visitor->trace(m_height); |
| 52 visitor->trace(m_rx); |
| 53 visitor->trace(m_ry); |
| 54 SVGGeometryElement::trace(visitor); |
| 55 } |
| 56 |
| 46 DEFINE_NODE_FACTORY(SVGRectElement) | 57 DEFINE_NODE_FACTORY(SVGRectElement) |
| 47 | 58 |
| 48 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) | 59 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) |
| 49 { | 60 { |
| 50 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 61 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 51 if (supportedAttributes.isEmpty()) { | 62 if (supportedAttributes.isEmpty()) { |
| 52 supportedAttributes.add(SVGNames::xAttr); | 63 supportedAttributes.add(SVGNames::xAttr); |
| 53 supportedAttributes.add(SVGNames::yAttr); | 64 supportedAttributes.add(SVGNames::yAttr); |
| 54 supportedAttributes.add(SVGNames::widthAttr); | 65 supportedAttributes.add(SVGNames::widthAttr); |
| 55 supportedAttributes.add(SVGNames::heightAttr); | 66 supportedAttributes.add(SVGNames::heightAttr); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 || m_rx->currentValue()->isRelative() | 116 || m_rx->currentValue()->isRelative() |
| 106 || m_ry->currentValue()->isRelative(); | 117 || m_ry->currentValue()->isRelative(); |
| 107 } | 118 } |
| 108 | 119 |
| 109 RenderObject* SVGRectElement::createRenderer(RenderStyle*) | 120 RenderObject* SVGRectElement::createRenderer(RenderStyle*) |
| 110 { | 121 { |
| 111 return new RenderSVGRect(this); | 122 return new RenderSVGRect(this); |
| 112 } | 123 } |
| 113 | 124 |
| 114 } // namespace blink | 125 } // namespace blink |
| OLD | NEW |