| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> | 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 DEFINE_NODE_FACTORY(SVGTextPathElement) | 62 DEFINE_NODE_FACTORY(SVGTextPathElement) |
| 63 | 63 |
| 64 SVGTextPathElement::~SVGTextPathElement() | 64 SVGTextPathElement::~SVGTextPathElement() |
| 65 { | 65 { |
| 66 #if !ENABLE(OILPAN) | 66 #if !ENABLE(OILPAN) |
| 67 clearResourceReferences(); | 67 clearResourceReferences(); |
| 68 #endif | 68 #endif |
| 69 } | 69 } |
| 70 | 70 |
| 71 void SVGTextPathElement::trace(Visitor* visitor) |
| 72 { |
| 73 visitor->trace(m_startOffset); |
| 74 visitor->trace(m_method); |
| 75 visitor->trace(m_spacing); |
| 76 SVGTextContentElement::trace(visitor); |
| 77 SVGURIReference::trace(visitor); |
| 78 } |
| 79 |
| 71 void SVGTextPathElement::clearResourceReferences() | 80 void SVGTextPathElement::clearResourceReferences() |
| 72 { | 81 { |
| 73 removeAllOutgoingReferences(); | 82 removeAllOutgoingReferences(); |
| 74 } | 83 } |
| 75 | 84 |
| 76 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName) | 85 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName) |
| 77 { | 86 { |
| 78 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 87 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 79 if (supportedAttributes.isEmpty()) { | 88 if (supportedAttributes.isEmpty()) { |
| 80 SVGURIReference::addSupportedAttributes(supportedAttributes); | 89 SVGURIReference::addSupportedAttributes(supportedAttributes); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 clearResourceReferences(); | 166 clearResourceReferences(); |
| 158 } | 167 } |
| 159 | 168 |
| 160 bool SVGTextPathElement::selfHasRelativeLengths() const | 169 bool SVGTextPathElement::selfHasRelativeLengths() const |
| 161 { | 170 { |
| 162 return m_startOffset->currentValue()->isRelative() | 171 return m_startOffset->currentValue()->isRelative() |
| 163 || SVGTextContentElement::selfHasRelativeLengths(); | 172 || SVGTextContentElement::selfHasRelativeLengths(); |
| 164 } | 173 } |
| 165 | 174 |
| 166 } // namespace blink | 175 } // namespace blink |
| OLD | NEW |