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 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 m_fr->setDefaultValueAsString("0%"); | 49 m_fr->setDefaultValueAsString("0%"); |
50 | 50 |
51 addToPropertyMap(m_cx); | 51 addToPropertyMap(m_cx); |
52 addToPropertyMap(m_cy); | 52 addToPropertyMap(m_cy); |
53 addToPropertyMap(m_r); | 53 addToPropertyMap(m_r); |
54 addToPropertyMap(m_fx); | 54 addToPropertyMap(m_fx); |
55 addToPropertyMap(m_fy); | 55 addToPropertyMap(m_fy); |
56 addToPropertyMap(m_fr); | 56 addToPropertyMap(m_fr); |
57 } | 57 } |
58 | 58 |
| 59 void SVGRadialGradientElement::trace(Visitor* visitor) |
| 60 { |
| 61 visitor->trace(m_cx); |
| 62 visitor->trace(m_cy); |
| 63 visitor->trace(m_r); |
| 64 visitor->trace(m_fx); |
| 65 visitor->trace(m_fy); |
| 66 visitor->trace(m_fr); |
| 67 SVGGradientElement::trace(visitor); |
| 68 } |
| 69 |
59 DEFINE_NODE_FACTORY(SVGRadialGradientElement) | 70 DEFINE_NODE_FACTORY(SVGRadialGradientElement) |
60 | 71 |
61 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) | 72 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) |
62 { | 73 { |
63 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
64 if (supportedAttributes.isEmpty()) { | 75 if (supportedAttributes.isEmpty()) { |
65 supportedAttributes.add(SVGNames::cxAttr); | 76 supportedAttributes.add(SVGNames::cxAttr); |
66 supportedAttributes.add(SVGNames::cyAttr); | 77 supportedAttributes.add(SVGNames::cyAttr); |
67 supportedAttributes.add(SVGNames::fxAttr); | 78 supportedAttributes.add(SVGNames::fxAttr); |
68 supportedAttributes.add(SVGNames::fyAttr); | 79 supportedAttributes.add(SVGNames::fyAttr); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 { | 197 { |
187 return m_cx->currentValue()->isRelative() | 198 return m_cx->currentValue()->isRelative() |
188 || m_cy->currentValue()->isRelative() | 199 || m_cy->currentValue()->isRelative() |
189 || m_r->currentValue()->isRelative() | 200 || m_r->currentValue()->isRelative() |
190 || m_fx->currentValue()->isRelative() | 201 || m_fx->currentValue()->isRelative() |
191 || m_fy->currentValue()->isRelative() | 202 || m_fy->currentValue()->isRelative() |
192 || m_fr->currentValue()->isRelative(); | 203 || m_fr->currentValue()->isRelative(); |
193 } | 204 } |
194 | 205 |
195 } // namespace blink | 206 } // namespace blink |
OLD | NEW |